forked from qt-creator/qt-creator
ExtensionManager: Refresh View after installing
Change-Id: Id4963d52d07aaf8f7e5a3904f95dc3accf204f80 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -721,6 +721,7 @@ void ExtensionManagerWidget::fetchAndInstallPlugin(const QUrl &url, const QStrin
|
||||
storage,
|
||||
NetworkQueryTask{onQuerySetup, onQueryDone},
|
||||
Sync{onPluginInstallation},
|
||||
Sync{[this]() { updateView(m_extensionBrowser->currentIndex()); }},
|
||||
NetworkQueryTask{onDownloadSetup, onDownloadDone},
|
||||
};
|
||||
|
||||
|
@@ -697,6 +697,11 @@ void ExtensionsBrowser::showEvent(QShowEvent *event)
|
||||
QWidget::showEvent(event);
|
||||
}
|
||||
|
||||
QModelIndex ExtensionsBrowser::currentIndex() const
|
||||
{
|
||||
return d->selectionModel->currentIndex();
|
||||
}
|
||||
|
||||
void ExtensionsBrowser::fetchExtensions()
|
||||
{
|
||||
#ifdef WITH_TESTS
|
||||
|
@@ -32,6 +32,8 @@ public:
|
||||
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
QModelIndex currentIndex() const;
|
||||
|
||||
signals:
|
||||
void itemSelected(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
|
||||
|
Reference in New Issue
Block a user