You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Update if == NOTIFICATION_* to switch statements to match coding style
This commit is contained in:
@@ -38,15 +38,10 @@
|
||||
#include "editor/editor_settings.h"
|
||||
|
||||
void ResourcePreloaderEditor::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
load->set_icon(get_theme_icon(SNAME("Folder"), SNAME("EditorIcons")));
|
||||
}
|
||||
|
||||
if (p_what == NOTIFICATION_READY) {
|
||||
//NodePath("/root")->connect("node_removed", this,"_node_removed",Vector<Variant>(),true);
|
||||
}
|
||||
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
load->set_icon(get_theme_icon(SNAME("Folder"), SNAME("EditorIcons")));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user