1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Don't call Project.frame_changed() twice at the beginning

This commit is contained in:
Manolis Papadeas 2021-06-07 20:05:50 +03:00
parent e9bf310934
commit fd8b6b7385

View file

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