1
0
Fork 0
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:
Emmanouil Papadeas 2024-03-21 03:00:21 +02:00
parent 491d81f393
commit 07fa1266d3
2 changed files with 0 additions and 3 deletions

View file

@ -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

View file

@ -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)