mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Update if == NOTIFICATION_* to switch statements to match coding style
This commit is contained in:
@@ -52,9 +52,12 @@ void NodeDock::_bind_methods() {
|
||||
}
|
||||
|
||||
void NodeDock::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_ENTER_TREE || p_what == NOTIFICATION_THEME_CHANGED) {
|
||||
connections_button->set_icon(get_theme_icon(SNAME("Signals"), SNAME("EditorIcons")));
|
||||
groups_button->set_icon(get_theme_icon(SNAME("Groups"), SNAME("EditorIcons")));
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
connections_button->set_icon(get_theme_icon(SNAME("Signals"), SNAME("EditorIcons")));
|
||||
groups_button->set_icon(get_theme_icon(SNAME("Groups"), SNAME("EditorIcons")));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user