Skip to content

Commit

Permalink
rename signal to isDeviceConnectedChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
Gela committed Dec 19, 2023
1 parent 83f7a94 commit 44d2503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ bool Controller::activate(const ServerData& serverData,
logger.debug() << "Internet probe failed during controller activation. "
"Device has no network connectivity.";
m_isDeviceConnected = false;
emit isDeviceConnectedFailed();
emit isDeviceConnectedChanged();
return false;
}
m_isDeviceConnected = true;
Expand Down
4 changes: 2 additions & 2 deletions src/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Controller : public QObject, public LogSerializer {
Q_PROPERTY(bool silentServerSwitchingSupported READ
silentServerSwitchingSupported CONSTANT);
Q_PROPERTY(bool isDeviceConnected READ isDeviceConnected NOTIFY
isDeviceConnectedFailed);
isDeviceConnectedChanged);

#ifdef MZ_DUMMY
// This is just for testing purposes. Not exposed in prod.
Expand Down Expand Up @@ -144,7 +144,7 @@ class Controller : public QObject, public LogSerializer {
void readyToBackendFailure();
void readyToServerUnavailable(bool pingReceived);
void activationBlockedForCaptivePortal();
void isDeviceConnectedFailed();
void isDeviceConnectedChanged();

#ifdef MZ_DUMMY
void currentServerChanged();
Expand Down

0 comments on commit 44d2503

Please sign in to comment.