Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed May 22, 2024
1 parent 5f98c09 commit d1f6c60
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/createinstancedialogpages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ void GamePage::select(IPluginGame* game, const QString& dir)
// ask the user

const auto path = QFileDialog::getExistingDirectory(
&m_dlg, QObject::tr("Find game installation for %1").arg(game->displayGameName()));
&m_dlg,
QObject::tr("Find game installation for %1").arg(game->displayGameName()));

if (path.isEmpty()) {
// cancelled
Expand Down Expand Up @@ -570,7 +571,8 @@ void GamePage::fillList()
continue;
}

if (!m_filter.matches(g->game->gameName()) && !m_filter.matches(g->game->displayGameName())) {
if (!m_filter.matches(g->game->gameName()) &&
!m_filter.matches(g->game->displayGameName())) {
// filtered out
continue;
}
Expand Down Expand Up @@ -667,9 +669,10 @@ bool GamePage::confirmMicrosoftStore(const QString& path, IPluginGame* game)
"Organizer"
" and will not work properly.")
.arg(path))
.button({game ? QObject::tr("Use this folder for %1").arg(game->displayGameName())
: QObject::tr("Use this folder"),
QObject::tr("I know what I'm doing"), QMessageBox::Ignore})
.button(
{game ? QObject::tr("Use this folder for %1").arg(game->displayGameName())
: QObject::tr("Use this folder"),
QObject::tr("I know what I'm doing"), QMessageBox::Ignore})
.button({QObject::tr("Cancel"), QMessageBox::Cancel})
.exec();

Expand Down Expand Up @@ -715,7 +718,8 @@ IPluginGame* GamePage::confirmOtherGame(const QString& path, IPluginGame* select
.arg(selectedGame->displayGameName()))
.button({QObject::tr("Manage %1 instead").arg(guessedGame->displayGameName()),
QMessageBox::Ok})
.button({QObject::tr("Use this folder for %1").arg(selectedGame->displayGameName()),
.button({QObject::tr("Use this folder for %1")
.arg(selectedGame->displayGameName()),
QObject::tr("I know what I'm doing"), QMessageBox::Ignore})
.button({QObject::tr("Cancel"), QMessageBox::Cancel})
.exec();
Expand Down

0 comments on commit d1f6c60

Please sign in to comment.