mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #96615 from KoBeWi/run_as_administrator
Globally remember advanced toggle in project settings
This commit is contained in:
commit
0c3ff561d7
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user