Browse Source

Merge pull request #55186 from timothyqiu/theme-picker-reset

Rémi Verschelde 3 năm trước cách đây
mục cha
commit
835f4dedaf
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      editor/plugins/theme_editor_preview.cpp

+ 3 - 0
editor/plugins/theme_editor_preview.cpp

@@ -71,6 +71,9 @@ void ThemeEditorPreview::_preview_visibility_changed() {
 
 void ThemeEditorPreview::_picker_button_cbk() {
 	picker_overlay->set_visible(picker_button->is_pressed());
+	if (picker_button->is_pressed()) {
+		_reset_picker_overlay();
+	}
 }
 
 Control *ThemeEditorPreview::_find_hovered_control(Control *p_parent, Vector2 p_mouse_position) {