File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 31
31
/* *************************************************************************/
32
32
33
33
#include " window.h"
34
+ #include " core/version_generated.gen.h"
34
35
#include " window.compat.inc"
35
36
36
37
#include " core/config/project_settings.h"
@@ -1414,25 +1415,7 @@ void Window::_notification(int p_what) {
1414
1415
_update_theme_item_cache ();
1415
1416
1416
1417
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
1425
1418
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
- }
1436
1419
} break ;
1437
1420
1438
1421
case NOTIFICATION_VISIBILITY_CHANGED: {
You can’t perform that action at this time.
0 commit comments