You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Convert _notification methods to switch - Chunk C
This commit is contained in:
@@ -421,10 +421,14 @@ void PropertySelector::_hide_requested() {
|
||||
}
|
||||
|
||||
void PropertySelector::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
connect("confirmed", callable_mp(this, &PropertySelector::_confirmed));
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
disconnect("confirmed", callable_mp(this, &PropertySelector::_confirmed));
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
connect("confirmed", callable_mp(this, &PropertySelector::_confirmed));
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
disconnect("confirmed", callable_mp(this, &PropertySelector::_confirmed));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user