From e1f1cf2e4aca1026989e9d3cccf6f63935a79812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Mon, 21 Sep 2026 19:00:10 +0200 Subject: [PATCH] [Client] Warn that the update installer force-closes within a minute Telling the user Cockatrice just 'stays open for now' is misleading: the installer launched by #7308 waits only about 60 s for a graceful close before it force-terminates the process, which would lose unsaved work. State the deadline and tell the user to save and close before then. --- cockatrice/src/interface/widgets/dialogs/dlg_update.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp index 060a30bc4..169ed257a 100644 --- a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp +++ b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp @@ -249,14 +249,17 @@ void DlgUpdate::downloadSuccessful(const QUrl &filepath) // card DB update, an open game, or an unsaved deck, and closeForUpdate() also reports a // close already in progress (reached from a nested event loop while a shutdown prompt is // up). Only quit when the shutdown really ran - otherwise keep running so the user can - // resolve the blocker, and tell them the installer is already waiting. + // resolve the blocker, and warn them that the installer only waits about a minute + // before it terminates the application to finish the update. if (auto *window = qobject_cast(parent())) { if (window->closeForUpdate()) { QTimer::singleShot(0, qApp, [] { QCoreApplication::exit(0); }); } else { QMessageBox::warning(this, tr("Update"), - tr("The update installer is already running and will finish the update once " - "Cockatrice closes. Cockatrice is still busy, so it stays open for now.")); + tr("The update installer is already running and will terminate " + "Cockatrice within the next minute to finish the update. " + "Cockatrice is still busy, so save your work and close it " + "yourself before then.")); } } else { QTimer::singleShot(0, qApp, [] { QCoreApplication::exit(0); });