From f14ed7e37020926bf0fbb2c951a4bcf40f7ccb55 Mon Sep 17 00:00:00 2001 From: Michakrom Date: Thu, 7 Nov 2024 20:23:51 +0100 Subject: [PATCH] Fix for a scripts panel state not being saved when toggle button is used --- editor/gui/code_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/gui/code_editor.cpp b/editor/gui/code_editor.cpp index 9f9f8c6717d..9934d8bbfad 100644 --- a/editor/gui/code_editor.cpp +++ b/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(); }