From c699aeb6d862f2c0960de126538931e4f13368b7 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Wed, 29 Jul 2020 22:28:06 -0400 Subject: moved list of supported games to details having too many plugins made the dialog too tall --- src/createinstancedialogpages.cpp | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'src/createinstancedialogpages.cpp') 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 += "
  • " + game->gameName() + "
  • "; + 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.

    These are the games that can be managed:" - "").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 GamePage::sortedGamePlugins() const @@ -334,7 +341,7 @@ std::vector GamePage::sortedGamePlugins() const std::sort(v.begin(), v.end(), [](auto* a, auto* b) { return (a->gameName() < b->gameName()); - }); + }); return v; } -- cgit v1.3.1