Fix for a scripts panel state not being saved when toggle button is used

This commit is contained in:
Michakrom 2024-11-07 20:23:51 +01:00
parent 36e6207bb4
commit ddcaf365ea

View File

@ -1587,6 +1587,7 @@ void CodeTextEditor::_set_show_warnings_panel(bool p_show) {
void CodeTextEditor::_toggle_scripts_pressed() {
ERR_FAIL_NULL(toggle_scripts_list);
toggle_scripts_list->set_visible(!toggle_scripts_list->is_visible());
EditorSettings::get_singleton()->set_project_metadata("scripts_panel", "show_scripts_panel", toggle_scripts_list->is_visible());
update_toggle_scripts_button();
}