From 410f06435c1da979f826d677532829b60912de10 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 16 Aug 2024 19:29:32 +0300 Subject: [PATCH] Fix issue where color sliders wouldn't be visible during startup, if the color options button was expanded --- src/UI/ColorPickers/ColorPicker.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/UI/ColorPickers/ColorPicker.gd b/src/UI/ColorPickers/ColorPicker.gd index ba55f7e72..8f837f8ee 100644 --- a/src/UI/ColorPickers/ColorPicker.gd +++ b/src/UI/ColorPickers/ColorPicker.gd @@ -23,9 +23,6 @@ var color_sliders_vbox: VBoxContainer func _ready() -> void: Tools.color_changed.connect(update_color) _average(left_color_rect.color, right_color_rect.color) - expand_button.button_pressed = Global.config_cache.get_value( - "color_picker", "is_expanded", false - ) color_picker.color_mode = Global.config_cache.get_value( "color_picker", "color_mode", ColorPicker.MODE_RGB ) @@ -85,6 +82,10 @@ func _ready() -> void: picker_vbox_container.add_child(expand_button) picker_vbox_container.move_child(expand_button, 2) + expand_button.button_pressed = Global.config_cache.get_value( + "color_picker", "is_expanded", false + ) + func _notification(what: int) -> void: if what == NOTIFICATION_THEME_CHANGED and is_instance_valid(hsv_rectangle_control):