mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
No longer select last_entry that isn't in the list
CURA-2860
This commit is contained in:
parent
1bc0fdebc9
commit
75e067cab7
2 changed files with 5 additions and 1 deletions
|
@ -168,12 +168,16 @@ class SettingInheritanceManager(QObject):
|
|||
if value is not None:
|
||||
# If a setting doesn't use any keys, it won't change it's value, so treat it as if it's a fixed value
|
||||
has_setting_function = isinstance(value, UM.Settings.SettingFunction) and len(value.getUsedSettingKeys()) > 0
|
||||
if key == "prime_tower_size":
|
||||
print(container.getId())
|
||||
if has_setting_function is False:
|
||||
has_non_function_value = True
|
||||
continue
|
||||
|
||||
if has_setting_function:
|
||||
break # There is a setting function somewhere, stop looking deeper.
|
||||
if key == "prime_tower_size":
|
||||
print("YAY", has_setting_function, has_non_function_value)
|
||||
return has_setting_function and has_non_function_value
|
||||
|
||||
def _update(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue