diff options
author | RedMser <redmser.jj2@gmail.com> | 2022-08-06 22:10:24 +0200 |
---|---|---|
committer | RedMser <redmser.jj2@gmail.com> | 2022-08-06 22:10:24 +0200 |
commit | c939f336d6e26bb0d84f23e5a2587bc296b35dbf (patch) | |
tree | ef44e76be6b5098ce3a2e2c780dfee0dab8fc086 /core | |
parent | 21f6916ffc52d83ac57b4f412f3eb8d6b40afebe (diff) |
Only define `keep_screen_on` project setting once
Diffstat (limited to 'core')
-rw-r--r-- | core/config/project_settings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 38db7f9190..5c4bcc687a 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -1198,6 +1198,9 @@ ProjectSettings::ProjectSettings() { GLOBAL_DEF("display/window/size/window_height_override", 0); custom_prop_info["display/window/size/window_height_override"] = PropertyInfo(Variant::INT, "display/window/size/window_height_override", PROPERTY_HINT_RANGE, "0,4320,1,or_greater"); // 8K resolution + GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true); + GLOBAL_DEF("display/window/energy_saving/keep_screen_on.editor", false); + GLOBAL_DEF_BASIC("audio/buses/default_bus_layout", "res://default_bus_layout.tres"); custom_prop_info["audio/buses/default_bus_layout"] = PropertyInfo(Variant::STRING, "audio/buses/default_bus_layout", PROPERTY_HINT_FILE, "*.tres"); GLOBAL_DEF_RST("audio/general/2d_panning_strength", 1.0f); |