summaryrefslogtreecommitdiff
path: root/updater/conf_dialog.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-08-01 06:05:41 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-08-01 06:05:41 +0000
commitc10325a57b62cbff94b474356a46e400fed0c2d8 (patch)
tree71d0431047a7cd66a631a98ee0eb7c2aa79f8908 /updater/conf_dialog.cpp
parent0ff1d601dfadfd19e286c021fd1288e8b8b4b7c2 (diff)
added option not to unzip saved archives
removed translation of folders plugin strings git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@317 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/conf_dialog.cpp')
-rw-r--r--updater/conf_dialog.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/updater/conf_dialog.cpp b/updater/conf_dialog.cpp
index b12d8b0..8830086 100644
--- a/updater/conf_dialog.cpp
+++ b/updater/conf_dialog.cpp
@@ -9,13 +9,23 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
SetWindowLong(hwndDlg, GWL_USERDATA, 0);
SendMessage(GetDlgItem(hwndDlg, IDC_LIST_UPDATES),LVM_SETEXTENDEDLISTVIEWSTYLE, 0,LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES);
- if(DBGetContactSettingByte(0, "Updater", "DefaultConfAll", 0)) {
- CheckDlgButton(hwndDlg, IDC_CHK_CONFALL, TRUE);
- HWND hw = GetDlgItem(hwndDlg, IDC_CHK_NOINSTALL);
- EnableWindow(hw, FALSE);
- } else if(DBGetContactSettingByte(0, "Updater", "NoInstall", 0)) {
- CheckDlgButton(hwndDlg, IDC_CHK_NOINSTALL, TRUE);
- SetWindowText(GetDlgItem(hwndDlg, IDOK), TranslateT("Download"));
+ if(options.save_zips && options.no_unzip) {
+ CheckDlgButton(hwndDlg, IDC_CHK_CONFALL, FALSE);
+ HWND hw = GetDlgItem(hwndDlg, IDC_CHK_CONFALL);
+ EnableWindow(hw, FALSE);
+ hw = GetDlgItem(hwndDlg, IDC_CHK_NOINSTALL);
+ EnableWindow(hw, FALSE);
+ CheckDlgButton(hwndDlg, IDC_CHK_NOINSTALL, TRUE);
+ SetWindowText(GetDlgItem(hwndDlg, IDOK), TranslateT("Download"));
+ } else {
+ if(DBGetContactSettingByte(0, "Updater", "DefaultConfAll", 0)) {
+ CheckDlgButton(hwndDlg, IDC_CHK_CONFALL, TRUE);
+ HWND hw = GetDlgItem(hwndDlg, IDC_CHK_NOINSTALL);
+ EnableWindow(hw, FALSE);
+ } else if(DBGetContactSettingByte(0, "Updater", "NoInstall", 0)) {
+ CheckDlgButton(hwndDlg, IDC_CHK_NOINSTALL, TRUE);
+ SetWindowText(GetDlgItem(hwndDlg, IDOK), TranslateT("Download"));
+ }
}
{