mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Remove three calls to Global.preferences_dialog
This commit is contained in:
parent
491d81f393
commit
07fa1266d3
|
@ -454,7 +454,6 @@ var enable_autosave := true:
|
|||
return
|
||||
enable_autosave = value
|
||||
OpenSave.update_autosave()
|
||||
preferences_dialog.autosave_interval.editable = enable_autosave
|
||||
## Found in Preferences. The index of graphics renderer used by Pixelorama.
|
||||
var renderer := 0:
|
||||
set = _renderer_changed
|
||||
|
|
|
@ -22,6 +22,4 @@ func _on_RestoreDefaultButton_pressed() -> void:
|
|||
Global.set(setting_name, default_value)
|
||||
if not require_restart:
|
||||
Global.config_cache.set_value("preferences", setting_name, default_value)
|
||||
Global.preferences_dialog.preference_update(require_restart)
|
||||
Global.preferences_dialog.disable_restore_default_button(self, true)
|
||||
node.set(value_type, default_value)
|
||||
|
|
Loading…
Reference in a new issue