mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
HasUser settings now returns False when no container stack is found
This commit is contained in:
parent
e8743abe68
commit
727c34b535
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class MachineManagerModel(QObject):
|
||||||
@pyqtProperty(bool, notify = activeStackChanged)
|
@pyqtProperty(bool, notify = activeStackChanged)
|
||||||
def hasUserSettings(self):
|
def hasUserSettings(self):
|
||||||
if not self._active_container_stack:
|
if not self._active_container_stack:
|
||||||
return
|
return False
|
||||||
|
|
||||||
user_settings = self._active_container_stack.getTop().findInstances(**{})
|
user_settings = self._active_container_stack.getTop().findInstances(**{})
|
||||||
return len(user_settings) != 0
|
return len(user_settings) != 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue