summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-09-05 18:52:44 +0200
committerkobewi <kobewi4e@gmail.com>2024-09-05 18:52:44 +0200
commitb01c2ef42db08dc299220ddc80ca2421f4ad2e9c (patch)
tree25de91f24206ec55e35e302ac991d6813f9e06ae /editor/project_settings_editor.cpp
parent88ed6af1e6844908293aa1599421b40870be513c (diff)
downloadredot-engine-b01c2ef42db08dc299220ddc80ca2421f4ad2e9c.tar.gz
Globally remember advanced toggle in project settings
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 489fbb037f..19d3f64f62 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -104,7 +104,8 @@ void ProjectSettingsEditor::_update_advanced(bool p_is_advanced) {
}
void ProjectSettingsEditor::_advanced_toggled(bool p_button_pressed) {
- EditorSettings::get_singleton()->set_project_metadata("project_settings", "advanced_mode", p_button_pressed);
+ EditorSettings::get_singleton()->set("_project_settings_advanced_mode", p_button_pressed);
+ EditorSettings::get_singleton()->save();
_update_advanced(p_button_pressed);
general_settings_inspector->set_restrict_to_basic_settings(!p_button_pressed);
}
@@ -768,8 +769,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
set_ok_button_text(TTR("Close"));
set_hide_on_ok(true);
- bool use_advanced = EditorSettings::get_singleton()->get_project_metadata("project_settings", "advanced_mode", false);
-
+ bool use_advanced = EDITOR_DEF("_project_settings_advanced_mode", false);
if (use_advanced) {
advanced->set_pressed(true);
}