diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-08 20:22:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-08 20:22:07 +0000 |
commit | 71f9ef9ded15566ee811508a6c9b8eee21facfa8 (patch) | |
tree | 57e5de5cb549b3d83475306c09897e27a5cf47ec /plugins/PluginUpdater/src/Notifications.cpp | |
parent | 1f0a5302f57c29d538d6633c080458df0ac3d5f7 (diff) |
- reminder removed;
- double "Update" click fixed;
- "once a day" option is enabled by default
git-svn-id: http://svn.miranda-ng.org/main/trunk@1410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Notifications.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 22086497b5..59a2b57735 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -285,7 +285,7 @@ static void ApplyUpdates(void* param) DeleteFile(p.File.tszDiskPath);
}
- DBWriteContactSettingByte(NULL, MODULEA, "RestartCount", 2);
+ DBWriteContactSettingByte(NULL, MODNAME, "RestartCount", 2);
DestroyWindow(hDlg);
CallFunctionAsync(RestartMe, 0);
}
@@ -400,6 +400,9 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam if (HIWORD( wParam ) == BN_CLICKED) {
switch(LOWORD(wParam)) {
case IDOK:
+ EnableWindow( GetDlgItem(hDlg, IDOK), FALSE);
+ EnableWindow( GetDlgItem(hDlg, IDC_SELALL), FALSE);
+ EnableWindow( GetDlgItem(hDlg, IDC_SELNONE), FALSE);
mir_forkthread(ApplyUpdates, hDlg);
return TRUE;
|