diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-15 10:36:22 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-15 10:36:22 +0000 |
commit | b1e20e52b7b0ed9cd528e209d0a09e1ef4e2c3b7 (patch) | |
tree | be0c0c2c428f5cde651c83c1832a261c5f82fbe4 /plugins/Db_autobackups/src/options.cpp | |
parent | d7b9ee00b935f774c1d521b9efcb2e41f087f744 (diff) |
db_autobackups: dropbox support
git-svn-id: http://svn.miranda-ng.org/main/trunk@15560 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/options.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/options.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp index 59e5ca5306..4f4339b2f8 100644 --- a/plugins/Db_autobackups/src/options.cpp +++ b/plugins/Db_autobackups/src/options.cpp @@ -60,6 +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);
SetBackupTimer();
return 0;
@@ -95,6 +96,7 @@ int SaveOptions(void) db_set_b(0, "AutoBackups", "NoProgress", (BYTE)options.disable_progress);
db_set_b(0, "AutoBackups", "NoPopups", (BYTE)options.disable_popups);
db_set_b(0, "AutoBackups", "UseZip", (BYTE)options.use_zip);
+ db_set_b(0, "AutoBackups", "UseDropbox", (BYTE)options.use_dropbox);
SetBackupTimer();
return 0;
@@ -152,6 +154,7 @@ int SetDlgState(HWND hwndDlg) CheckDlgButton(hwndDlg, IDC_CHK_NOPROG, new_options.disable_progress ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHK_NOPOPUP, new_options.disable_popups ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHK_USEZIP, new_options.use_zip ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_DROPBOX, new_options.use_dropbox ? BST_CHECKED : BST_UNCHECKED);
if (!ServiceExists(MS_POPUP_ADDPOPUPT))
ShowWindow(GetDlgItem(hwndDlg, IDC_CHK_NOPOPUP), SW_HIDE);
@@ -304,6 +307,10 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP new_options.use_zip = IsDlgButtonChecked(hwndDlg, IDC_CHK_USEZIP);
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
+ case IDC_DROPBOX:
+ new_options.use_dropbox = IsDlgButtonChecked(hwndDlg, IDC_DROPBOX);
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+ break;
case IDC_LNK_FOLDERS:
{
OPENOPTIONSDIALOG ood = { 0 };
|