diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-29 22:28:06 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:06 -0500 |
| commit | c699aeb6d862f2c0960de126538931e4f13368b7 (patch) | |
| tree | bfd61d16a796a3cb701ec13bdd3d851e1c6b055a /src | |
| parent | 58479e4b00d399e3025558104e50c75ef609dda0 (diff) | |
moved list of supported games to details
having too many plugins made the dialog too tall
Diffstat (limited to 'src')
| -rw-r--r-- | src/createinstancedialogpages.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/createinstancedialogpages.cpp b/src/createinstancedialogpages.cpp index 2aac93a0..f37853f0 100644 --- a/src/createinstancedialogpages.cpp +++ b/src/createinstancedialogpages.cpp @@ -313,15 +313,22 @@ void GamePage::warnUnrecognized(const QString& path) { QString supportedGames; for (auto* game : sortedGamePlugins()) { - supportedGames += "<li>" + game->gameName() + "</li>"; + supportedGames += game->gameName() + "\n"; } - QMessageBox::warning(&m_dlg, - QObject::tr("Unrecognized game"), - QObject::tr( - "The folder %1 does not seem to contain a game Mod Organizer can " - "manage.<br><br><b>These are the games that can be managed:</b>" - "<ul>%2</ul>").arg(path).arg(supportedGames)); + QMessageBox dlg(&m_dlg); + + dlg.setWindowTitle(QObject::tr("Unrecognized game")); + dlg.setText(QObject::tr( + "The folder %1 does not seem to contain a game Mod Organizer can " + "manage.").arg(path)); + dlg.setInformativeText( + QObject::tr("See details for the list of supported games.")); + dlg.setDetailedText(supportedGames); + dlg.setIcon(QMessageBox::Warning); + dlg.setStandardButtons(QMessageBox::Ok); + + dlg.exec(); } std::vector<IPluginGame*> GamePage::sortedGamePlugins() const @@ -334,7 +341,7 @@ std::vector<IPluginGame*> GamePage::sortedGamePlugins() const std::sort(v.begin(), v.end(), [](auto* a, auto* b) { return (a->gameName() < b->gameName()); - }); + }); return v; } |
