refactor: new ClientError::NoError
This commit is contained in:
parent
fd94403a73
commit
695dc04c00
2 changed files with 3 additions and 0 deletions
|
|
@ -186,6 +186,8 @@ void showFirstConnectedMessage(QWidget *parent, bool closeToTray, bool enableSer
|
||||||
void showClientConnectError(QWidget *parent, ClientError error, const QString &address)
|
void showClientConnectError(QWidget *parent, ClientError error, const QString &address)
|
||||||
{
|
{
|
||||||
using enum ClientError;
|
using enum ClientError;
|
||||||
|
if (error == NoError)
|
||||||
|
return;
|
||||||
|
|
||||||
auto message = QObject::tr("<p>Failed to connect to the server '%1'.</p>").arg(address);
|
auto message = QObject::tr("<p>Failed to connect to the server '%1'.</p>").arg(address);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ namespace deskflow::gui::messages {
|
||||||
|
|
||||||
enum class ClientError
|
enum class ClientError
|
||||||
{
|
{
|
||||||
|
NoError,
|
||||||
AlreadyConnected,
|
AlreadyConnected,
|
||||||
HostnameError,
|
HostnameError,
|
||||||
GenericError
|
GenericError
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue