diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-09 18:52:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-09 18:52:33 +0000 |
commit | f5169e98bde42ee8d13bd96ee2f7f19cf4b39576 (patch) | |
tree | 92516619fc86ff1f67bb841f49f26b17b734cddc /plugins | |
parent | 352e77858895aaa4d0c072257ed93ce5d78f766b (diff) |
don't display MessageBox on startup when popups aren't istalled
git-svn-id: http://svn.miranda-ng.org/main/trunk@1418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 2 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Scanner.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 59a2b57735..2b7a4ca923 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -124,6 +124,8 @@ void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int A switch( Number ) {
case 1: iMsgType = MB_ICONSTOP; break;
case 2: iMsgType = MB_ICONINFORMATION; break;
+ case 3: iMsgType = MB_ICONQUESTION; break;
+ case 4: return;
default: iMsgType = 0;
}
MessageBox(hDlg, TranslateTS(ptszText), TranslateTS(ptszTitle), iMsgType);
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index 24e9713bae..83ab6a5396 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -143,7 +143,7 @@ static void CheckUpdates(void *) DBFreeVariant(&dbVar);
// Download version info
- ShowPopup(NULL, TranslateT("Plugin Updater"), TranslateT("Downloading version info..."), 3, 0);
+ ShowPopup(NULL, TranslateT("Plugin Updater"), TranslateT("Downloading version info..."), 4, 0);
FILEURL pFileUrl;
mir_sntprintf(pFileUrl.tszDownloadURL, SIZEOF(pFileUrl.tszDownloadURL), _T("%s/hashes.zip"), tszBaseUrl);
|