Skip to content

Commit 7fd39b3

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scene/main/window.cpp

Lines changed: 7 additions & 1 deletion
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"
@@ -41,6 +42,7 @@
4142
#include "scene/gui/control.h"
4243
#include "scene/theme/theme_db.h"
4344
#include "scene/theme/theme_owner.h"
45+
#include "thirdparty/pcre2/src/config.h"
4446

4547
// Editor integration.
4648

@@ -1419,7 +1421,11 @@ void Window::_notification(int p_what) {
14191421
// Append a suffix to the window title to denote that the project is running
14201422
// from a debug build (including the editor). Since this results in lower performance,
14211423
// this should be clearly presented to the user.
1422-
tr_title = vformat("%s (DEBUG)", tr_title);
1424+
#ifdef DEV_ENABLED
1425+
tr_title = vformat("%s (DEBUG) Redot Engine %d.%d.%d", tr_title, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
1426+
#else
1427+
tr_title = vformat("Redot Engine %d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
1428+
#endif
14231429
}
14241430
#endif
14251431

0 commit comments

Comments
 (0)