Skip to content

Commit

Permalink
Switch to condensed format for version display.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Aug 2, 2024
1 parent 51717ed commit b38c5dd
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 107 deletions.
10 changes: 6 additions & 4 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,10 @@ MainWindow::~MainWindow()
void MainWindow::updateWindowTitle(const APIUserAccount& user)
{
//"\xe2\x80\x93" is an "em dash", a longer "-"
QString title = QString("%1 \xe2\x80\x93 Mod Organizer v%2")
.arg(m_OrganizerCore.managedGame()->displayGameName(),
m_OrganizerCore.getVersion().string());
QString title =
QString("%1 \xe2\x80\x93 Mod Organizer v%2")
.arg(m_OrganizerCore.managedGame()->displayGameName(),
m_OrganizerCore.getVersion().string(Version::FormatCondensed));

if (!user.name().isEmpty()) {
const QString premium = (user.type() == APIUserAccountTypes::Premium ? "*" : "");
Expand Down Expand Up @@ -1051,7 +1052,8 @@ void MainWindow::checkForProblemsImpl()

void MainWindow::about()
{
AboutDialog(m_OrganizerCore.getVersion().string(), this).exec();
AboutDialog(m_OrganizerCore.getVersion().string(Version::FormatCondensed), this)
.exec();
}

void MainWindow::createEndorseMenu()
Expand Down
Loading

0 comments on commit b38c5dd

Please sign in to comment.