summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-02-27 16:56:39 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-02-27 16:56:39 +0000
commit61e1d6d2882b1582498e412dc94ed4b35de2ed77 (patch)
tree9f5a321b17d455af6dc07b408eec415369be260f /plugins/Dropbox/src/dropbox_events.cpp
parent3b2b36ee8addccacc150e9600f83d1d09fb2251a (diff)
Dropbox:
- added "Revoke authorization" in contact menu item - added authorization request on first start git-svn-id: http://svn.miranda-ng.org/main/trunk@8302 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_events.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_events.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_events.cpp b/plugins/Dropbox/src/dropbox_events.cpp
index 4fc7e3613c..1e5157faa1 100644
--- a/plugins/Dropbox/src/dropbox_events.cpp
+++ b/plugins/Dropbox/src/dropbox_events.cpp
@@ -27,6 +27,12 @@ int CDropbox::OnModulesLoaded(WPARAM wParam, LPARAM lParam)
{
db_set_w(hContact, MODULE, "Status", ID_STATUS_ONLINE);
}
+
+ if (!db_get_b(NULL, "FirstRun", MODULE, 0))
+ {
+ mir_forkthread(CDropbox::RequestApiAuthorizationAsync, 0);
+ db_set_b(NULL, "FirstRun", MODULE, 1);
+ }
}
}