Browse Source

Merge pull request #98936 from Michakrom/toggle-scripts-panel-save-fix

Fix scripts panel state not being saved when toggle button is used
Thaddeus Crews 3 weeks ago
parent
commit
e9718d4bed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/gui/code_editor.cpp

+ 1 - 0
editor/gui/code_editor.cpp

@@ -1672,6 +1672,7 @@ void CodeTextEditor::_set_show_warnings_panel(bool p_show) {
 void CodeTextEditor::_toggle_files_pressed() {
 	ERR_FAIL_NULL(toggle_files_list);
 	toggle_files_list->set_visible(!toggle_files_list->is_visible());
+	EditorSettings::get_singleton()->set_project_metadata("files_panel", "show_files_panel", toggle_files_list->is_visible());
 	update_toggle_files_button();
 }