mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-23 08:20:01 +01:00
Make Dropbox logout work.
This commit is contained in:
parent
415e6dc5e8
commit
06e5b6750c
@ -171,6 +171,10 @@ void DropboxService::RequestFileListFinished(QNetworkReply* reply) {
|
||||
}
|
||||
|
||||
void DropboxService::LongPollDelta() {
|
||||
if (!has_credentials()) {
|
||||
// Might have been signed out by the user.
|
||||
return;
|
||||
}
|
||||
QSettings s;
|
||||
s.beginGroup(kSettingsGroup);
|
||||
|
||||
|
@ -90,6 +90,9 @@ bool DropboxSettingsPage::eventFilter(QObject* object, QEvent* event) {
|
||||
|
||||
void DropboxSettingsPage::LogoutClicked() {
|
||||
ui_->login_state->SetLoggedIn(LoginStateWidget::LoggedOut);
|
||||
QSettings s;
|
||||
s.beginGroup(DropboxService::kSettingsGroup);
|
||||
s.remove("access_token2");
|
||||
}
|
||||
|
||||
void DropboxSettingsPage::Connected() {
|
||||
|
Loading…
Reference in New Issue
Block a user