Fixes lost icons in docks, file manager, sample library, settings and various other places.
This commit is contained in:
parent
959683c3d8
commit
958dbc1173
1 changed files with 4 additions and 4 deletions
|
@ -480,10 +480,10 @@ void Control::_notification(int p_notification) {
|
||||||
if (is_set_as_toplevel()) {
|
if (is_set_as_toplevel()) {
|
||||||
data.SI=get_viewport()->_gui_add_subwindow_control(this);
|
data.SI=get_viewport()->_gui_add_subwindow_control(this);
|
||||||
|
|
||||||
/*if (data.theme.is_null() && data.parent && data.parent->data.theme_owner) {
|
if (data.theme.is_null() && data.parent && data.parent->data.theme_owner) {
|
||||||
data.theme_owner=data.parent->data.theme_owner;
|
data.theme_owner=data.parent->data.theme_owner;
|
||||||
notification(NOTIFICATION_THEME_CHANGED);
|
notification(NOTIFICATION_THEME_CHANGED);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -519,10 +519,10 @@ void Control::_notification(int p_notification) {
|
||||||
|
|
||||||
if (parent_control) {
|
if (parent_control) {
|
||||||
//do nothing, has a parent control
|
//do nothing, has a parent control
|
||||||
/*if (data.theme.is_null() && parent_control->data.theme_owner) {
|
if (data.theme.is_null() && parent_control->data.theme_owner) {
|
||||||
data.theme_owner=parent_control->data.theme_owner;
|
data.theme_owner=parent_control->data.theme_owner;
|
||||||
notification(NOTIFICATION_THEME_CHANGED);
|
notification(NOTIFICATION_THEME_CHANGED);
|
||||||
}*/
|
}
|
||||||
} else if (subwindow) {
|
} else if (subwindow) {
|
||||||
//is a subwindow (process input before other controls for that canvas)
|
//is a subwindow (process input before other controls for that canvas)
|
||||||
data.SI=get_viewport()->_gui_add_subwindow_control(this);
|
data.SI=get_viewport()->_gui_add_subwindow_control(this);
|
||||||
|
|
Loading…
Reference in a new issue