refactor: new ClientError::NoError

This commit is contained in:
sithlord48
2025-11-27 09:10:51 -05:00
committed by Nick Bolton
parent fd94403a73
commit 695dc04c00
2 changed files with 3 additions and 0 deletions

View File

@ -186,6 +186,8 @@ void showFirstConnectedMessage(QWidget *parent, bool closeToTray, bool enableSer
void showClientConnectError(QWidget *parent, ClientError error, const QString &address)
{
using enum ClientError;
if (error == NoError)
return;
auto message = QObject::tr("<p>Failed to connect to the server '%1'.</p>").arg(address);

View File

@ -15,6 +15,7 @@ namespace deskflow::gui::messages {
enum class ClientError
{
NoError,
AlreadyConnected,
HostnameError,
GenericError