From 07fa1266d3f1be85780f3cf209c5bf9d906d8d8f Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 21 Mar 2024 03:00:21 +0200 Subject: [PATCH] Remove three calls to `Global.preferences_dialog` --- src/Autoload/Global.gd | 1 - src/Preferences/RestoreDefaultButton.gd | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index d7d6d2999..206fb9d1f 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -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 diff --git a/src/Preferences/RestoreDefaultButton.gd b/src/Preferences/RestoreDefaultButton.gd index 5bc8bd1b4..1ad64d7f6 100644 --- a/src/Preferences/RestoreDefaultButton.gd +++ b/src/Preferences/RestoreDefaultButton.gd @@ -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)