forked from qt-creator/qt-creator
Provide "Restart Now" functionality
And use it for the plugin dialog and when changing the UI language. Change-Id: Ic767837d2526409f7ec46d7e4612a1499f19459e Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
|
||||
#include "plugindialog.h"
|
||||
|
||||
#include "icore.h"
|
||||
|
||||
#include "dialogs/restartdialog.h"
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <extensionsystem/pluginview.h>
|
||||
#include <extensionsystem/plugindetailsview.h>
|
||||
@@ -116,6 +120,11 @@ PluginDialog::PluginDialog(QWidget *parent)
|
||||
void PluginDialog::closeDialog()
|
||||
{
|
||||
ExtensionSystem::PluginManager::writeSettings();
|
||||
if (s_isRestartRequired) {
|
||||
RestartDialog restartDialog(ICore::dialogParent(),
|
||||
tr("Plugin changes will take effect after restart."));
|
||||
restartDialog.exec();
|
||||
}
|
||||
accept();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user