From c939f336d6e26bb0d84f23e5a2587bc296b35dbf Mon Sep 17 00:00:00 2001 From: RedMser Date: Sat, 6 Aug 2022 22:10:24 +0200 Subject: Only define `keep_screen_on` project setting once --- platform/ios/display_server_ios.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/ios') diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm index 080ee5f3ab..6ce7e676a2 100644 --- a/platform/ios/display_server_ios.mm +++ b/platform/ios/display_server_ios.mm @@ -128,7 +128,7 @@ DisplayServerIOS::DisplayServerIOS(const String &p_rendering_driver, WindowMode } #endif - bool keep_screen_on = bool(GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true)); + bool keep_screen_on = bool(GLOBAL_GET("display/window/energy_saving/keep_screen_on")); screen_set_keep_on(keep_screen_on); Input::get_singleton()->set_event_dispatch_function(_dispatch_input_events); -- cgit v1.2.3