summaryrefslogtreecommitdiffstats
path: root/modules/openxr/editor/openxr_action_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/editor/openxr_action_editor.cpp')
-rw-r--r--modules/openxr/editor/openxr_action_editor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/openxr/editor/openxr_action_editor.cpp b/modules/openxr/editor/openxr_action_editor.cpp
index c4789d501f..52216fa483 100644
--- a/modules/openxr/editor/openxr_action_editor.cpp
+++ b/modules/openxr/editor/openxr_action_editor.cpp
@@ -34,10 +34,15 @@ void OpenXRActionEditor::_bind_methods() {
ADD_SIGNAL(MethodInfo("remove", PropertyInfo(Variant::OBJECT, "action_editor")));
}
+void OpenXRActionEditor::_theme_changed() {
+ rem_action->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
+}
+
void OpenXRActionEditor::_notification(int p_what) {
switch (p_what) {
+ case NOTIFICATION_ENTER_TREE:
case NOTIFICATION_THEME_CHANGED: {
- rem_action->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
+ _theme_changed();
} break;
}
}