mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 01:57:29 +08:00
HasUser settings now returns False when no container stack is found
This commit is contained in:
parent
e8743abe68
commit
727c34b535
@ -202,7 +202,7 @@ class MachineManagerModel(QObject):
|
||||
@pyqtProperty(bool, notify = activeStackChanged)
|
||||
def hasUserSettings(self):
|
||||
if not self._active_container_stack:
|
||||
return
|
||||
return False
|
||||
|
||||
user_settings = self._active_container_stack.getTop().findInstances(**{})
|
||||
return len(user_settings) != 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user