summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db_autobackups/src/main.cpp')
-rw-r--r--plugins/Db_autobackups/src/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp
index 5fd1b5172c..1b898f31c2 100644
--- a/plugins/Db_autobackups/src/main.cpp
+++ b/plugins/Db_autobackups/src/main.cpp
@@ -98,8 +98,16 @@ static INT_PTR OnTogglePopups(WPARAM, LPARAM)
return 0;
}
+static int PluginLoaded(WPARAM, LPARAM)
+{
+ g_plugin.bCloudFilePresent = ServiceExists(MS_CLOUDFILE_UPLOAD);
+ return 0;
+}
+
static int ModulesLoad(WPARAM, LPARAM)
{
+ PluginLoaded(0, 0);
+
CMenuItem mi(&g_plugin);
mi.root = g_plugin.addRootMenu(MO_MAIN, LPGENW("Database"), 500000000);
@@ -167,6 +175,8 @@ int CMPlugin::Load()
HookEvent(ME_SYSTEM_OKTOEXIT, OkToExit);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoad);
+ HookEvent(ME_SYSTEM_MODULELOAD, PluginLoaded);
+ HookEvent(ME_SYSTEM_MODULEUNLOAD, PluginLoaded);
g_plugin.registerIcon(LPGEN("Database") "/" LPGEN("Database backups"), iconList);