diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-07 11:46:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 11:46:25 +0100 |
commit | b02460266065413957eae3de34f9aef49c5a72f1 (patch) | |
tree | 42e73d207d13fcd2053557ca9b9ae38c2fe37ead /scene/gui/popup.cpp | |
parent | 6f425242dcce95ae9993dca017f91e7bab2060d3 (diff) | |
parent | a988fad9a092053434545c32afae91ccbdfbe792 (diff) |
Merge pull request #57725 from jmb462/missing-sname-theme-setters
Diffstat (limited to 'scene/gui/popup.cpp')
-rw-r--r-- | scene/gui/popup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index 7c03fcbb37..416d847218 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -242,9 +242,9 @@ void PopupPanel::_update_child_rects() { void PopupPanel::_notification(int p_what) { if (p_what == NOTIFICATION_THEME_CHANGED) { - panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), get_class_name())); + panel->add_theme_style_override(SNAME("panel"), get_theme_stylebox(SNAME("panel"), get_class_name())); } else if (p_what == NOTIFICATION_READY || p_what == NOTIFICATION_ENTER_TREE) { - panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), get_class_name())); + panel->add_theme_style_override(SNAME("panel"), get_theme_stylebox(SNAME("panel"), get_class_name())); _update_child_rects(); } else if (p_what == NOTIFICATION_WM_SIZE_CHANGED) { _update_child_rects(); |