aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_settings.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-26 19:17:21 +0200
committerGitHub2017-09-26 19:17:21 +0200
commit9a87fe37c19d36b6edf5fbc7ccb08528f25833a9 (patch)
treedbe8246a2e9750e34f1490dd754349691e52a7d3 /editor/editor_settings.cpp
parent7119858ce6b5e8dd045589da8387b1c1cd4c76ef (diff)
parent3e0d18b9c00609523b6d3090cfdcad8f618a7b3f (diff)
downloadgodot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.tar.gz
godot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.tar.zst
godot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.zip
Merge pull request #11607 from volzhs/theme-update
Update theme property respectively
Diffstat (limited to 'editor/editor_settings.cpp')
-rw-r--r--editor/editor_settings.cpp6
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;
}