Răsfoiți Sursa

Fix bottom panel visibility behaviour in the theme editor

Fixes #29034, fixes #29056

(cherry picked from commit b5c8205312c04205db5fe7ebf87ddbaa9dbfc950)
Michael Alexsander Silva Dias 6 ani în urmă
părinte
comite
b01ef197a6
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      editor/plugins/theme_editor_plugin.cpp

+ 1 - 3
editor/plugins/theme_editor_plugin.cpp

@@ -878,11 +878,9 @@ ThemeEditor::ThemeEditor() {
 void ThemeEditorPlugin::edit(Object *p_node) {
 void ThemeEditorPlugin::edit(Object *p_node) {
 
 
 	if (Object::cast_to<Theme>(p_node)) {
 	if (Object::cast_to<Theme>(p_node)) {
-		theme_editor->show();
 		theme_editor->edit(Object::cast_to<Theme>(p_node));
 		theme_editor->edit(Object::cast_to<Theme>(p_node));
 	} else {
 	} else {
 		theme_editor->edit(Ref<Theme>());
 		theme_editor->edit(Ref<Theme>());
-		theme_editor->hide();
 	}
 	}
 }
 }
 
 
@@ -897,11 +895,11 @@ void ThemeEditorPlugin::make_visible(bool p_visible) {
 		theme_editor->set_process(true);
 		theme_editor->set_process(true);
 		button->show();
 		button->show();
 		editor->make_bottom_panel_item_visible(theme_editor);
 		editor->make_bottom_panel_item_visible(theme_editor);
-
 	} else {
 	} else {
 		theme_editor->set_process(false);
 		theme_editor->set_process(false);
 		if (theme_editor->is_visible_in_tree())
 		if (theme_editor->is_visible_in_tree())
 			editor->hide_bottom_panel();
 			editor->hide_bottom_panel();
+
 		button->hide();
 		button->hide();
 	}
 	}
 }
 }