Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Jul 10, 2023
1 parent 1d907aa commit 1dfc396
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gui/accountstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ QString AccountState::stateString(State state)
return tr("Service unavailable");
case MaintenanceMode:
return tr("Maintenance mode");
case RedirectDetected:
return tr("Redirect detected");
case NetworkError:
return tr("Network error");
case ConfigurationError:
Expand Down Expand Up @@ -342,11 +344,11 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta

_lastConnectionValidatorStatus = status;

// Come online gradually from 503 or maintenance mode
// Come online gradually from 503, captive portal(redirection) or maintenance mode
if (status == ConnectionValidator::Connected
&& (_connectionStatus == ConnectionValidator::ServiceUnavailable
|| _connectionStatus == ConnectionValidator::MaintenanceMode)
|| _connectionStatus == ConnectionValidator::StatusRedirect) {
|| _connectionStatus == ConnectionValidator::MaintenanceMode
|| _connectionStatus == ConnectionValidator::StatusRedirect)) {
if (!_timeSinceMaintenanceOver.isValid()) {
qCInfo(lcAccountState) << "AccountState reconnection: delaying for"
<< _maintenanceToConnectedDelay << "ms";
Expand Down

0 comments on commit 1dfc396

Please sign in to comment.