From f5169e98bde42ee8d13bd96ee2f7f19cf4b39576 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Aug 2012 18:52:33 +0000 Subject: 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 --- plugins/PluginUpdater/src/Notifications.cpp | 2 ++ plugins/PluginUpdater/src/Scanner.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/PluginUpdater') 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); -- cgit v1.2.3