diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-16 13:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 13:58:04 +0200 |
commit | bc5ba1c266050aa4aa746cfc3ede4634e692a5dc (patch) | |
tree | d968a2f638efde62bb63df13fbda2d6daad89a92 /main/main.cpp | |
parent | b29a3e7e23ad915f349855170fb4470f9198b05e (diff) | |
parent | a9c60007a9f7cacd690c09b7f74a5e6f190c5cfb (diff) |
Merge pull request #33148 from Calinou/debug-window-title-suffix
Add a suffix to the window title when running from a debug build
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 5320274add..d828d4954e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1917,7 +1917,14 @@ bool Main::start() { sml->set_quit_on_go_back(GLOBAL_DEF("application/config/quit_on_go_back", true)); String appname = ProjectSettings::get_singleton()->get("application/config/name"); appname = TranslationServer::get_singleton()->translate(appname); +#ifdef DEBUG_ENABLED + // Append a suffix to the window title to denote that the project is running + // from a debug build (including the editor). Since this results in lower performance, + // this should be clearly presented to the user. + DisplayServer::get_singleton()->window_set_title(vformat("%s (DEBUG)", appname)); +#else DisplayServer::get_singleton()->window_set_title(appname); +#endif int shadow_atlas_size = GLOBAL_GET("rendering/quality/shadow_atlas/size"); int shadow_atlas_q0_subdiv = GLOBAL_GET("rendering/quality/shadow_atlas/quadrant_0_subdiv"); |