summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorRedMser <redmser.jj2@gmail.com>2022-08-06 22:10:24 +0200
committerRedMser <redmser.jj2@gmail.com>2022-08-06 22:10:24 +0200
commitc939f336d6e26bb0d84f23e5a2587bc296b35dbf (patch)
treeef44e76be6b5098ce3a2e2c780dfee0dab8fc086 /platform/ios
parent21f6916ffc52d83ac57b4f412f3eb8d6b40afebe (diff)
Only define `keep_screen_on` project setting once
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/display_server_ios.mm2
1 files changed, 1 insertions, 1 deletions
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);