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,
|
storage,
|
||||||
NetworkQueryTask{onQuerySetup, onQueryDone},
|
NetworkQueryTask{onQuerySetup, onQueryDone},
|
||||||
Sync{onPluginInstallation},
|
Sync{onPluginInstallation},
|
||||||
|
Sync{[this]() { updateView(m_extensionBrowser->currentIndex()); }},
|
||||||
NetworkQueryTask{onDownloadSetup, onDownloadDone},
|
NetworkQueryTask{onDownloadSetup, onDownloadDone},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -697,6 +697,11 @@ void ExtensionsBrowser::showEvent(QShowEvent *event)
|
|||||||
QWidget::showEvent(event);
|
QWidget::showEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QModelIndex ExtensionsBrowser::currentIndex() const
|
||||||
|
{
|
||||||
|
return d->selectionModel->currentIndex();
|
||||||
|
}
|
||||||
|
|
||||||
void ExtensionsBrowser::fetchExtensions()
|
void ExtensionsBrowser::fetchExtensions()
|
||||||
{
|
{
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
|
@@ -32,6 +32,8 @@ public:
|
|||||||
|
|
||||||
void showEvent(QShowEvent *event) override;
|
void showEvent(QShowEvent *event) override;
|
||||||
|
|
||||||
|
QModelIndex currentIndex() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void itemSelected(const QModelIndex ¤t, const QModelIndex &previous);
|
void itemSelected(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user