Add confirmation dialog for force start (#5797)

This commit is contained in:
RickyRister
2025-04-06 12:39:08 +02:00
committed by GitHub
parent 195116d1de
commit d17523ff17
@@ -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);