aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-06-13 22:12:53 -0300
committerJuan Linietsky2015-06-13 22:12:53 -0300
commit9a58960d288b0c68c34f296dd97d0134fa1e5f02 (patch)
tree7b417d3b99ec4e413fca8f1187bd7417a9482828 /scene/gui/control.cpp
parentc845c2a8276c61323416139790962a096a8d956e (diff)
downloadgodot-9a58960d288b0c68c34f296dd97d0134fa1e5f02.tar.gz
godot-9a58960d288b0c68c34f296dd97d0134fa1e5f02.tar.zst
godot-9a58960d288b0c68c34f296dd97d0134fa1e5f02.zip
some editor window changes
-ability to make dock position configurable, and it gets saved -editor starts maximized default
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r--scene/gui/control.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index 22559c238..2367c03e9 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -548,15 +548,18 @@ void Control::_notification(int p_notification) {
Control * parent = get_parent()->cast_to<Control>();
//make children reference them theme
- if (parent && data.theme.is_null() && parent->data.theme_owner)
+
+ if (parent && data.theme.is_null() && parent->data.theme_owner) {
_propagate_theme_changed(parent->data.theme_owner);
+ }
} break;
case NOTIFICATION_UNPARENTED: {
//make children unreference the theme
- if (data.theme.is_null() && data.theme_owner)
+ if (data.theme.is_null() && data.theme_owner) {
_propagate_theme_changed(NULL);
+ }
} break;
case NOTIFICATION_MOVED_IN_PARENT: {