mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Simplify restart check
CURA-8588
This commit is contained in:
parent
852076460f
commit
89c82964c3
1 changed files with 2 additions and 2 deletions
|
|
@ -99,8 +99,8 @@ class Marketplace(Extension, QObject):
|
|||
self.setTabShown(1)
|
||||
|
||||
def checkIfRestartNeeded(self) -> None:
|
||||
if self._package_manager.hasPackagesToRemoveOrInstall or len(
|
||||
self._plugin_registry.getCurrentSessionActivationChangedPlugins()) > 0:
|
||||
if self._package_manager.hasPackagesToRemoveOrInstall or \
|
||||
self._plugin_registry.getCurrentSessionActivationChangedPlugins():
|
||||
self._restart_needed = True
|
||||
else:
|
||||
self._restart_needed = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue