Make the logout button on the spotify settings page actually work
This commit is contained in:
parent
08e09ce5dd
commit
a8dfa31818
|
@ -639,4 +639,8 @@ void SpotifyService::Logout() {
|
|||
blob_process_ = NULL;
|
||||
|
||||
login_state_ = LoginState_OtherError;
|
||||
|
||||
QSettings s;
|
||||
s.beginGroup(kSettingsGroup);
|
||||
s.setValue("login_state", login_state_);
|
||||
}
|
||||
|
|
|
@ -152,4 +152,6 @@ void SpotifySettingsPage::UpdateLoginState() {
|
|||
void SpotifySettingsPage::Logout() {
|
||||
service_->Logout();
|
||||
UpdateLoginState();
|
||||
|
||||
ui_->username->clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue