From fd8b6b738501e41d1d51bbcb43d05cb7aec6cf99 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 7 Jun 2021 20:05:50 +0300 Subject: [PATCH] Don't call Project.frame_changed() twice at the beginning --- src/Preferences/HandleThemes.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Preferences/HandleThemes.gd b/src/Preferences/HandleThemes.gd index c1ff5c130..12c46fbce 100644 --- a/src/Preferences/HandleThemes.gd +++ b/src/Preferences/HandleThemes.gd @@ -50,6 +50,9 @@ func _on_Theme_pressed(index : int) -> void: buttons_container.get_child(index).pressed = true change_theme(index) + # Make sure the frame text gets updated + Global.current_project.current_frame = Global.current_project.current_frame + Global.config_cache.set_value("preferences", "theme", index) Global.config_cache.save("user://cache.ini") @@ -97,9 +100,6 @@ func change_theme(ID : int) -> void: change_icon_colors() - # Make sure the frame text gets updated - Global.current_project.current_frame = Global.current_project.current_frame - Global.preferences_dialog.get_node("Popups/ShortcutSelector").theme = main_theme # Sets disabled theme color on palette swatches