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:
parent
e9bf310934
commit
fd8b6b7385
|
@ -50,6 +50,9 @@ func _on_Theme_pressed(index : int) -> void:
|
||||||
buttons_container.get_child(index).pressed = true
|
buttons_container.get_child(index).pressed = true
|
||||||
change_theme(index)
|
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.set_value("preferences", "theme", index)
|
||||||
Global.config_cache.save("user://cache.ini")
|
Global.config_cache.save("user://cache.ini")
|
||||||
|
|
||||||
|
@ -97,9 +100,6 @@ func change_theme(ID : int) -> void:
|
||||||
|
|
||||||
change_icon_colors()
|
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
|
Global.preferences_dialog.get_node("Popups/ShortcutSelector").theme = main_theme
|
||||||
|
|
||||||
# Sets disabled theme color on palette swatches
|
# Sets disabled theme color on palette swatches
|
||||||
|
|
Loading…
Reference in a new issue