From 248630301122c38e3792d62ab3043a91f9fdd9a2 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Mon, 26 Mar 2018 14:12:27 +0200 Subject: [PATCH] CURA-5134 Use the built-in windowClosed method instead of quit when finishing installing or uninstalling plugins, otherwise the temporary data is not stored in the config file. This caused some problems with the lazy uninstall plugins since the list was never stored. --- plugins/PluginBrowser/PluginBrowser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/PluginBrowser/PluginBrowser.py b/plugins/PluginBrowser/PluginBrowser.py index bb4d5fb395..8912a7a202 100644 --- a/plugins/PluginBrowser/PluginBrowser.py +++ b/plugins/PluginBrowser/PluginBrowser.py @@ -391,14 +391,14 @@ class PluginBrowser(QObject, Extension): self._network_manager.finished.connect(self._onRequestFinished) self._network_manager.networkAccessibleChanged.connect(self._onNetworkAccesibleChanged) - @pyqtProperty(bool, notify=restartRequiredChanged) + @pyqtProperty(bool, notify = restartRequiredChanged) def restartRequired(self): return self._restart_required - @pyqtProperty(str, notify=viewChanged) + @pyqtProperty(str, notify = viewChanged) def viewing(self): return self._view @pyqtSlot() def restart(self): - CuraApplication.getInstance().quit() + CuraApplication.getInstance().windowClosed()