diff options
Diffstat (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp')
-rw-r--r-- | plugins/CloudFile/src/Services/dropbox_service.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index 459983b935..34e779df1c 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -39,9 +39,11 @@ bool CDropboxService::IsLoggedIn() return true; } -void CDropboxService::Login() +void CDropboxService::Login(HWND owner) { - COAuthDlg(this, DROPBOX_API_AUTH, RequestAccessTokenThread).DoModal(); + COAuthDlg dlg(this, DROPBOX_API_AUTH, RequestAccessTokenThread); + dlg.SetParent(owner); + dlg.DoModal(); } void CDropboxService::Logout() @@ -104,6 +106,10 @@ unsigned CDropboxService::RevokeAccessTokenThread(void *param) DropboxAPI::RevokeAccessTokenRequest request(token); NLHR_PTR response(request.Send(service->m_hConnection)); + service->delSetting("ExpiresIn"); + service->delSetting("TokenSecret"); + service->delSetting("RefreshToken"); + return 0; } |