diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 12:08:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 12:08:39 +0000 |
commit | 4207fda2535b6c1c1aa8e242da2de04ab40ba76b (patch) | |
tree | e3faf3288fac0cafd5ed8b60fb7824db798fa27b /plugins/PluginUpdater/src/Events.cpp | |
parent | da90f70ee92d2fcf13451ae40516c985f728a560 (diff) |
- added "Update Icons" option;
- removed some garbage from options dialog;
- modeless Apply Updates dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@1377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Events.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Events.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp index d2055474d5..5ac9d19561 100644 --- a/plugins/PluginUpdater/src/Events.cpp +++ b/plugins/PluginUpdater/src/Events.cpp @@ -20,24 +20,13 @@ Boston, MA 02111-1307, USA. #include "common.h"
HANDLE Timer;
-BOOL Silent;
int ModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- Silent = true;
- HOTKEYDESC hkd = {0};
- hkd.cbSize = sizeof(hkd);
- hkd.dwFlags = HKD_TCHAR;
- hkd.pszName = "Check for plugin updates";
- hkd.ptszDescription = _T("Check for plugin updates");
- hkd.ptszSection = _T("Plugin Updater");
- hkd.pszService = MODNAME"/CheckUpdates";
- hkd.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_F10) | HKF_MIRANDA_LOCAL;
- hkd.lParam = FALSE;
- Hotkey_Register(&hkd);
+ opts.bSilent = true;
if (AllowUpdateOnStartup())
- DoCheck(UpdateOnStartup);
+ DoCheck(opts.bUpdateOnStartup);
Timer = CreateWaitableTimer(NULL, FALSE, NULL);
InitTimer();
@@ -47,7 +36,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
{
- Silent = false;
+ opts.bSilent = false;
DoCheck(1);
return 0;
}
@@ -75,4 +64,4 @@ INT OnPreShutdown(WPARAM wParam, LPARAM lParam) CancelWaitableTimer(Timer);
CloseHandle(Timer);
return 0;
-}
\ No newline at end of file +}
|