Add confirmation dialog for force start (#5797)

This commit is contained in:
RickyRister 2025-04-06 03:39:08 -07:00 committed by GitHub
parent 195116d1de
commit d17523ff17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,6 +303,13 @@ void DeckViewContainer::readyStart()
void DeckViewContainer::forceStart()
{
const auto msg = tr("Are you sure you want to force start?\nThis will kick all non-ready players from the game.");
const auto res =
QMessageBox::warning(this, tr("Cockatrice"), msg, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
if (res == QMessageBox::No) {
return;
}
Command_ReadyStart cmd;
cmd.set_force_start(true);
cmd.set_ready(true);