connect(account.data(), &Account::credentialsAsked,
this, &AccountState::slotCredentialsAsked);
_timeSinceLastETagCheck.invalidate();
+
+ connect(this, &AccountState::isConnectedChanged, [=]{
+ // Get the Apps available on the server if we're now connected.
+ if (isConnected()) {
+ fetchNavigationApps();
+ }
+ });
}
AccountState::~AccountState() = default;
// Use a small authed propfind as a minimal ping when we're
// already connected.
conValidator->checkAuthentication();
-
- // Get the Apps available on the server.
- fetchNavigationApps();
} else {
// Check the server and then the auth.