From afa4542b04e57dbdaf169a92cc5adacfabffcf67 Mon Sep 17 00:00:00 2001 From: Christian Daniel Jensen Date: Tue, 3 Nov 2026 03:38:51 -0700 Subject: [PATCH] Use Continuumatrice application name in connection status and title --- .../remote_connection_controller.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cockatrice/src/client/network/connection_controller/remote_connection_controller.cpp b/cockatrice/src/client/network/connection_controller/remote_connection_controller.cpp index c702f91f1..afd21e428 100644 --- a/cockatrice/src/client/network/connection_controller/remote_connection_controller.cpp +++ b/cockatrice/src/client/network/connection_controller/remote_connection_controller.cpp @@ -13,6 +13,7 @@ #include "libcockatrice/protocol/pb/event_server_shutdown.pb.h" #include +#include #include #include #include @@ -217,7 +218,7 @@ void ConnectionController::onServerShutdownEvent(const Event_ServerShutdown &eve "games will be lost.\nReason for shutdown: %1", "", event.minutes()) .arg(QString::fromStdString(event.reason()))); - serverShutdownMessageBox.setIconPixmap(themePixmap(QStringLiteral("cockatrice")).scaled(64, 64)); + serverShutdownMessageBox.setIconPixmap(themePixmap(QStringLiteral("continuumatrice")).scaled(64, 64)); serverShutdownMessageBox.setText(tr("Scheduled server shutdown")); serverShutdownMessageBox.setWindowModality(Qt::ApplicationModal); serverShutdownMessageBox.setVisible(true); @@ -333,7 +334,7 @@ void ConnectionController::onLoginError(int r, case Response::RespContextError: { QMessageBox::critical(dialogParent, tr("Error"), - tr("An internal error has occurred, please close and reopen Cockatrice before " + tr("An internal error has occurred, please close and reopen Continuumatrice before " "trying again.\nIf the error persists, ensure you are running the latest " "version of the software and if needed contact the software developers.")); break; @@ -489,14 +490,14 @@ void ConnectionController::onProtocolVersionMismatch(int localVersion, int remot { if (localVersion > remoteVersion) { QMessageBox::critical(dialogParent, tr("Error"), - tr("You are trying to connect to an obsolete server. Please downgrade your Cockatrice " + tr("You are trying to connect to an obsolete server. Please downgrade your Continuumatrice " "version or connect to a suitable server.\n" "Local version is %1, remote version is %2.") .arg(localVersion) .arg(remoteVersion)); } else { QMessageBox::critical(dialogParent, tr("Error"), - tr("Your Cockatrice client is obsolete. Please update your Cockatrice version.\n" + tr("Your Continuumatrice client is obsolete. Please update your Continuumatrice version.\n" "Local version is %1, remote version is %2.") .arg(localVersion) .arg(remoteVersion)); @@ -631,7 +632,7 @@ void ConnectionController::onPromptForgotPasswordChallenge() void ConnectionController::updateWindowTitle() { - const QString appName = QStringLiteral("Cockatrice"); + const QString appName = QCoreApplication::applicationName(); QString title; switch (remoteClient->getStatus()) { @@ -653,7 +654,7 @@ void ConnectionController::updateWindowTitle() break; } case StatusLoggedIn: { - title = remoteClient->getUserName() + "@" + remoteClient->peerName(); + title = appName + " - " + remoteClient->getUserName() + "@" + remoteClient->peerName(); break; } case StatusRequestingForgotPassword: