diff options
-rw-r--r-- | plugins/Db_autobackups/src/main.cpp | 1 | ||||
-rw-r--r-- | plugins/Db_autobackups/src/options.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index f32c673ee2..8e505794ac 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -86,6 +86,7 @@ static int ModulesLoad(WPARAM, LPARAM) HookEvent(ME_FOLDERS_PATH_CHANGED, FoldersGetBackupPath);
FoldersGetBackupPath(0, 0);
}
+ options.use_dropbox = (BOOL)(db_get_b(0, "AutoBackups", "UseDropbox", 0) && ServiceExists(MS_DROPBOX_SEND_FILE));
if (options.backup_types & BT_START)
BackupStart(NULL);
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp index 4f4339b2f8..90e2fa5fdc 100644 --- a/plugins/Db_autobackups/src/options.cpp +++ b/plugins/Db_autobackups/src/options.cpp @@ -60,7 +60,7 @@ int LoadOptions(void) options.disable_progress = (BOOL)db_get_b(0, "AutoBackups", "NoProgress", 0);
options.disable_popups = (BOOL)db_get_b(0, "AutoBackups", "NoPopups", 0);
options.use_zip = (BOOL)db_get_b(0, "AutoBackups", "UseZip", 0);
- options.use_dropbox = (BOOL)db_get_b(0, "AutoBackups", "UseDropbox", 0);
+ options.use_dropbox = (BOOL)(db_get_b(0, "AutoBackups", "UseDropbox", 0) && ServiceExists(MS_DROPBOX_SEND_FILE));
SetBackupTimer();
return 0;
|