Skip to content

Commit 7608b6c

Browse files
Fix project manager showing "(DEBUG)" in title instead of "Redot Engine - Project Manager" #1037
1 parent 5fa69b3 commit 7608b6c

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

scene/main/window.cpp

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/**************************************************************************/
3232

3333
#include "window.h"
34+
#include "core/version_generated.gen.h"
3435
#include "window.compat.inc"
3536

3637
#include "core/config/project_settings.h"
@@ -1414,25 +1415,7 @@ void Window::_notification(int p_what) {
14141415
_update_theme_item_cache();
14151416

14161417
tr_title = atr(title);
1417-
#ifdef DEBUG_ENABLED
1418-
if (window_id == DisplayServer::MAIN_WINDOW_ID) {
1419-
// Append a suffix to the window title to denote that the project is running
1420-
// from a debug build (including the editor). Since this results in lower performance,
1421-
// this should be clearly presented to the user.
1422-
tr_title = vformat("%s (DEBUG)", tr_title);
1423-
}
1424-
#endif
14251418

1426-
if (!embedder && window_id != DisplayServer::INVALID_WINDOW_ID) {
1427-
DisplayServer::get_singleton()->window_set_title(tr_title, window_id);
1428-
if (keep_title_visible) {
1429-
Size2i title_size = DisplayServer::get_singleton()->window_get_title_size(tr_title, window_id);
1430-
Size2i size_limit = get_clamped_minimum_size();
1431-
if (title_size.x > size_limit.x || title_size.y > size_limit.y) {
1432-
_update_window_size();
1433-
}
1434-
}
1435-
}
14361419
} break;
14371420

14381421
case NOTIFICATION_VISIBILITY_CHANGED: {

0 commit comments

Comments
 (0)