mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:19:03 +08:00
Fixed inhertiance manager getting update from a Category setting
This commit is contained in:
parent
2297a6e80b
commit
fb0df3109c
@ -110,12 +110,12 @@ class SettingInheritanceManager(QObject):
|
|||||||
settings_with_inheritance_warning_changed = True
|
settings_with_inheritance_warning_changed = True
|
||||||
|
|
||||||
parent = definitions[0].parent
|
parent = definitions[0].parent
|
||||||
if parent is None:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Find the topmost parent (Assumed to be a category)
|
# Find the topmost parent (Assumed to be a category)
|
||||||
|
if parent is not None:
|
||||||
while parent.parent is not None:
|
while parent.parent is not None:
|
||||||
parent = parent.parent
|
parent = parent.parent
|
||||||
|
else:
|
||||||
|
parent = definitions[0] # Already at a category
|
||||||
|
|
||||||
if parent.key not in self._settings_with_inheritance_warning and has_overwritten_inheritance:
|
if parent.key not in self._settings_with_inheritance_warning and has_overwritten_inheritance:
|
||||||
# Category was not in the list yet, so needs to be added now.
|
# Category was not in the list yet, so needs to be added now.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user