diff options
| author | volzhs | 2017-09-26 20:08:25 +0900 |
|---|---|---|
| committer | volzhs | 2017-09-26 20:08:25 +0900 |
| commit | 3e0d18b9c00609523b6d3090cfdcad8f618a7b3f (patch) | |
| tree | c7af66a2a2596529d024bfc890df424e8a575773 /editor/editor_settings.cpp | |
| parent | 59c3f61d57e745db2eb5ee2eab9c4cac17105f7b (diff) | |
| download | godot-3e0d18b9c00609523b6d3090cfdcad8f618a7b3f.tar.gz godot-3e0d18b9c00609523b6d3090cfdcad8f618a7b3f.tar.zst godot-3e0d18b9c00609523b6d3090cfdcad8f618a7b3f.zip | |
Diffstat (limited to 'editor/editor_settings.cpp')
| -rw-r--r-- | editor/editor_settings.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index e1333d9d8..325f30a45 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -54,7 +54,7 @@ EditorSettings *EditorSettings::get_singleton() { return singleton.ptr(); } -bool EditorSettings::_set(const StringName &p_name, const Variant &p_value) { +bool EditorSettings::_set(const StringName &p_name, const Variant &p_value, bool p_emit_signal) { _THREAD_SAFE_METHOD_ @@ -90,7 +90,9 @@ bool EditorSettings::_set(const StringName &p_name, const Variant &p_value) { } } - emit_signal("settings_changed"); + if (p_emit_signal) { + emit_signal("settings_changed"); + } return true; } |
