From c10325a57b62cbff94b474356a46e400fed0c2d8 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 1 Aug 2007 06:05:41 +0000 Subject: 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 --- updater/conf_dialog.cpp | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'updater/conf_dialog.cpp') 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")); + } } { -- cgit v1.2.3