summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_events.cpp
diff options
context:
space:
mode:
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);
+ }
}
}