Skip to content

Commit 199a4fa

Browse files
committed
Save editor settings when modified from code
1 parent 7864ac8 commit 199a4fa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/classes/EditorSettings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<description>
77
Object that holds the project-independent editor settings. These settings are generally visible in the [b]Editor &gt; Editor Settings[/b] menu.
88
Property names use slash delimiters to distinguish sections. Setting values can be of any [Variant] type. It's recommended to use [code]snake_case[/code] for editor settings to be consistent with the Godot editor itself.
9+
Editor settings are saved automatically when changed.
910
Accessing the settings can be done using the following methods, such as:
1011
[codeblocks]
1112
[gdscript]

editor/settings/editor_settings_dialog.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ void EditorSettingsDialog::ok_pressed() {
6262
}
6363

6464
void EditorSettingsDialog::_settings_changed() {
65-
if (is_visible()) {
66-
timer->start();
67-
}
65+
timer->start();
6866
}
6967

7068
void EditorSettingsDialog::_settings_property_edited(const String &p_name) {

0 commit comments

Comments
 (0)