6814 |
6814 |
6815 @param pluginFileNames list of plugin files suggested for |
6815 @param pluginFileNames list of plugin files suggested for |
6816 installation list of strings |
6816 installation list of strings |
6817 """ |
6817 """ |
6818 from PluginManager.PluginInstallDialog import PluginInstallDialog |
6818 from PluginManager.PluginInstallDialog import PluginInstallDialog |
6819 dlg = PluginInstallDialog( |
6819 self.__pluginInstallDialog = PluginInstallDialog( |
6820 self.pluginManager, |
6820 self.pluginManager, |
6821 [] if pluginFileNames is None else pluginFileNames[:], |
6821 [] if pluginFileNames is None else pluginFileNames[:], |
6822 self) |
6822 self) |
6823 dlg.exec() |
6823 self.__pluginInstallDialog.setModal(False) |
6824 if dlg.restartNeeded(): |
6824 self.__pluginInstallDialog.finished.connect( |
|
6825 self.__pluginInstallFinished) |
|
6826 self.__pluginInstallDialog.show() |
|
6827 |
|
6828 @pyqtSlot() |
|
6829 def __pluginInstallFinished(self): |
|
6830 """ |
|
6831 Private slot to handle the finishing of the plugin install dialog. |
|
6832 """ |
|
6833 if self.__pluginInstallDialog.restartNeeded(): |
|
6834 self.__pluginInstallDialog.deleteLater() |
|
6835 del self.__pluginInstallDialog |
6825 self.__restart(ask=True) |
6836 self.__restart(ask=True) |
6826 |
6837 |
6827 def __deinstallPlugin(self): |
6838 def __deinstallPlugin(self): |
6828 """ |
6839 """ |
6829 Private slot to show a dialog to uninstall a plugin. |
6840 Private slot to show a dialog to uninstall a plugin. |