Fix to prevent spinning status wheel if incomplete Subsonic credentials are supplied
Fixes issue #3733
This commit is contained in:
parent
2e614a3d60
commit
a8117c31f0
@ -173,6 +173,9 @@ void SubsonicService::Login() {
|
|||||||
if (IsConfigured()) {
|
if (IsConfigured()) {
|
||||||
// Ping is enough to check credentials
|
// Ping is enough to check credentials
|
||||||
Ping();
|
Ping();
|
||||||
|
} else {
|
||||||
|
login_state_ = LoginState_IncompleteCredentials;
|
||||||
|
emit LoginStateChanged(login_state_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ class SubsonicService : public InternetService
|
|||||||
LoginState_HostNotFound,
|
LoginState_HostNotFound,
|
||||||
LoginState_Timeout,
|
LoginState_Timeout,
|
||||||
LoginState_SslError,
|
LoginState_SslError,
|
||||||
|
LoginState_IncompleteCredentials,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ApiError {
|
enum ApiError {
|
||||||
|
@ -123,6 +123,10 @@ void SubsonicSettingsPage::LoginStateChanged(SubsonicService::LoginState newstat
|
|||||||
"SSLv3 option below may workaround some issues."));
|
"SSLv3 option below may workaround some issues."));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SubsonicService::LoginState_IncompleteCredentials:
|
||||||
|
ui_->login_state->SetAccountTypeText(tr("Incomplete configuration, please ensure all fields are populated."));
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user