mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:49:00 +08:00
Fix the using of protected property in CustomQualityProfilesModel
This commit is contained in:
parent
50c61c9934
commit
154d104f95
@ -12,7 +12,7 @@ class CustomQualityProfilesModel(QualityProfilesModel):
|
||||
def _update(self):
|
||||
Logger.log("d", "Updating %s ...", self.__class__.__name__)
|
||||
|
||||
active_global_stack = Application.getInstance().getMachineManager()._global_container_stack
|
||||
active_global_stack = Application.getInstance().getMachineManager().activeMachine
|
||||
if active_global_stack is None:
|
||||
self.setItems([])
|
||||
Logger.log("d", "No active GlobalStack, set %s as empty.", self.__class__.__name__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user