mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:09:01 +08:00
Fix situation where the setting visibility model could cause a crash.
Yay for crash logging
This commit is contained in:
parent
4dc248a631
commit
90726ecbff
@ -140,7 +140,7 @@ class SettingVisibilityPresetsModel(QObject):
|
|||||||
item_to_set = self._active_preset_item
|
item_to_set = self._active_preset_item
|
||||||
if matching_preset_item is None:
|
if matching_preset_item is None:
|
||||||
# The new visibility setup is "custom" should be custom
|
# The new visibility setup is "custom" should be custom
|
||||||
if self._active_preset_item.presetId == "custom":
|
if self._active_preset_item is None or self._active_preset_item.presetId == "custom":
|
||||||
# We are already in custom, just save the settings
|
# We are already in custom, just save the settings
|
||||||
self._preferences.setValue("cura/custom_visible_settings", visibility_string)
|
self._preferences.setValue("cura/custom_visible_settings", visibility_string)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user