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.
This commit is contained in:
Diego Prado Gesto 2018-03-26 14:12:27 +02:00
parent 92661eb35c
commit 2486303011

View File

@ -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()