forked from qt-creator/qt-creator
ExtensionManager: Add "Install Extension..." button to settings page
This allows users to install an extension from a local archive. Fixes: QTCREATORBUG-31583 Change-Id: Ie9b411b3f6152924c80785cfabacd274db162d73 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/plugininstallwizard.h>
|
||||
|
||||
#include <utils/layoutbuilder.h>
|
||||
|
||||
@@ -41,7 +43,18 @@ ExtensionManagerSettings::ExtensionManagerSettings()
|
||||
groupChecker(useExternalRepo.groupChecker()),
|
||||
Form {
|
||||
externalRepoUrl
|
||||
}
|
||||
},
|
||||
},
|
||||
Row {
|
||||
PushButton {
|
||||
text(Tr::tr("Install Extension...")),
|
||||
onClicked([] {
|
||||
if (Core::executePluginInstallWizard())
|
||||
Core::ICore::askForRestart(
|
||||
Tr::tr("Plugin changes will take effect after restart."));
|
||||
}, this),
|
||||
},
|
||||
st,
|
||||
},
|
||||
st
|
||||
};
|
||||
|
Reference in New Issue
Block a user