| 637 | } |
| 638 | |
| 639 | void MainWindow::updateWindowTitle(const APIUserAccount& user) |
| 640 | { |
| 641 | //"\xe2\x80\x93" is an "em dash", a longer "-" |
| 642 | QString title = QString("%1 \xe2\x80\x93 Mod Organizer v%2") |
| 643 | .arg(m_OrganizerCore.managedGame()->displayGameName(), |
| 644 | m_OrganizerCore.getVersion().displayString(3)); |
| 645 | |
| 646 | if (!user.name().isEmpty()) { |
| 647 | const QString premium = (user.type() == APIUserAccountTypes::Premium ? "*" : ""); |
| 648 | title.append(QString(" (%1%2)").arg(user.name(), premium)); |
| 649 | } |
| 650 | |
| 651 | this->setWindowTitle(title); |
| 652 | } |
| 653 | |
| 654 | void MainWindow::resizeLists(bool pluginListCustom) |
| 655 | { |
nothing calls this directly
no test coverage detected