summaryrefslogtreecommitdiff
path: root/updater/conf_dialog.cpp
diff options
context:
space:
mode:
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"));
+ }
}
{