mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add confirmation dialog for force start (#5797)
This commit is contained in:
parent
195116d1de
commit
d17523ff17
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue