src/gui.cpp

changeset 229
b9e101b76eb3
parent 227
e13cd69b16dd
child 230
43d722c255d3
equal deleted inserted replaced
228:8cddb57489a7 229:b9e101b76eb3
490 490
491 // ============================================================================= 491 // =============================================================================
492 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 492 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
493 // ============================================================================= 493 // =============================================================================
494 void ForgeWindow::updateTitle () { 494 void ForgeWindow::updateTitle () {
495 str title = APPNAME " v"; 495 str title = fmt (APPNAME " %s", fullVersionString().chars ());
496 title += versionString;
497
498 #if BUILD_ID == BUILD_INTERNAL
499 title += " Internal";
500 #elif BUILD_ID == BUILD_ALPHA
501 title += " Alpha";
502 #elif BUILD_ID == BUILD_BETA
503 title += " Beta";
504 #elif BUILD_ID == BUILD_RC
505 title += " RC";
506 #endif // BUILD_ID
507 496
508 // Append our current file if we have one 497 // Append our current file if we have one
509 if (g_curfile) { 498 if (g_curfile) {
510 if (g_curfile->m_filename.len () > 0) 499 if (g_curfile->m_filename.len () > 0)
511 title += fmt (": %s", basename (g_curfile->m_filename)); 500 title += fmt (": %s", basename (g_curfile->m_filename));

mercurial