Skip to content

Commit

Permalink
Clean list of connection errors when account state changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Aug 4, 2024
1 parent b4767f2 commit e575561
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/accountstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ void AccountState::setState(State state)
emit isConnectedChanged();
}
if (_state == Connected) {
_connectionErrors.clear();
resetRetryCount();
}
}
}

// might not have changed but the underlying _connectionErrors might have
Expand Down Expand Up @@ -487,6 +488,7 @@ void AccountState::slotCredentialsAsked(AbstractCredentials *credentials)
// connection validation, even if it's currently running.
_connectionValidator->deleteLater();
_connectionValidator = nullptr;
_connectionErrors.clear();
}

checkConnectivity();
Expand Down

0 comments on commit e575561

Please sign in to comment.