Remove shift hotkey.

Took 4 minutes
This commit is contained in:
Lukas Brübach 2025-11-16 11:52:28 +01:00
parent e727f3bd61
commit 2e5f212db7
2 changed files with 5 additions and 8 deletions

View file

@ -130,7 +130,7 @@ GameSelector::GameSelector(AbstractClient *_client,
connect(spectateButton, &QPushButton::clicked, this, &GameSelector::actSpectate);
connect(gameListView->selectionModel(), &QItemSelectionModel::currentRowChanged, this,
&GameSelector::actSelectedGameChanged);
connect(gameListView, &QTreeView::activated, this, &GameSelector::actJoinAsPlayerOrJudge);
connect(gameListView, &QTreeView::activated, this, &GameSelector::actJoin);
connect(client, &AbstractClient::ignoreListReceived, this, &GameSelector::ignoreListReceived);
connect(client, &AbstractClient::addToListEventReceived, this, &GameSelector::processAddToListEvent);
@ -252,16 +252,11 @@ void GameSelector::actJoin()
}
void GameSelector::actJoinAsJudge()
{
return joinGame(false, true);
}
void GameSelector::actJoinAsPlayerOrJudge()
{
if (!(tabSupervisor->getUserInfo()->user_level() & ServerInfo_User::IsJudge)) {
return joinGame();
}
return joinGame(false, (QApplication::keyboardModifiers() & Qt::ShiftModifier) != 0);
return joinGame(false, true);
}
void GameSelector::actSpectate()

View file

@ -57,8 +57,10 @@ private slots:
* @brief Joins the currently selected game as a player.
*/
void actJoin();
/**
* @brief Joins the currently selected game as a judge.
*/
void actJoinAsJudge();
void actJoinAsPlayerOrJudge();
/**
* @brief Joins the currently selected game as a spectator.