Skip to content

Commit

Permalink
Merge pull request #69762 from akien-mga/fix-TouchScreenButton-screen…
Browse files Browse the repository at this point in the history
…-capability-check

TouchScreenButton: Fix screen capability check
  • Loading branch information
akien-mga committed Dec 8, 2022
2 parents 579d2e9 + a914ee8 commit f692b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/2d/touch_screen_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void TouchScreenButton::_notification(int p_what) {
if (!is_inside_tree()) {
return;
}
if (!Engine::get_singleton()->is_editor_hint() && !!DisplayServer::get_singleton()->is_touchscreen_available() && visibility == VISIBILITY_TOUCHSCREEN_ONLY) {
if (!Engine::get_singleton()->is_editor_hint() && !DisplayServer::get_singleton()->is_touchscreen_available() && visibility == VISIBILITY_TOUCHSCREEN_ONLY) {
return;
}

Expand Down Expand Up @@ -137,7 +137,7 @@ void TouchScreenButton::_notification(int p_what) {
} break;

case NOTIFICATION_ENTER_TREE: {
if (!Engine::get_singleton()->is_editor_hint() && !!DisplayServer::get_singleton()->is_touchscreen_available() && visibility == VISIBILITY_TOUCHSCREEN_ONLY) {
if (!Engine::get_singleton()->is_editor_hint() && !DisplayServer::get_singleton()->is_touchscreen_available() && visibility == VISIBILITY_TOUCHSCREEN_ONLY) {
return;
}
queue_redraw();
Expand Down

0 comments on commit f692b47

Please sign in to comment.