summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Notifications.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-26 12:14:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-26 12:14:59 +0300
commit1f7b57e84a6513125b312ae5d2123c073d94c8b1 (patch)
tree0f19fe85f39041e9e18c7cf04d15e568fd7b6da9 /plugins/PluginUpdater/src/Notifications.cpp
parent9ed5ca563b554a6522e2d993b7a45959d5b2497b (diff)
Plugin Updater:
- fixes #1927 (Hidden db option for hiding specified component from PU); - options moved into g_plugin; - warning & security fixes; - code cleaning
Diffstat (limited to 'plugins/PluginUpdater/src/Notifications.cpp')
-rw-r--r--plugins/PluginUpdater/src/Notifications.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp
index acf22fd26e..72285052fd 100644
--- a/plugins/PluginUpdater/src/Notifications.cpp
+++ b/plugins/PluginUpdater/src/Notifications.cpp
@@ -54,11 +54,11 @@ static LRESULT CALLBACK PopupDlgProc(HWND hPopup, UINT uMsg, WPARAM wParam, LPAR
{
switch (uMsg) {
case WM_COMMAND:
- PopupAction(hPopup, PopupOptions.LeftClickAction);
+ PopupAction(hPopup, g_plugin.PopupLeftClickAction);
break;
case WM_CONTEXTMENU:
- PopupAction(hPopup, PopupOptions.RightClickAction);
+ PopupAction(hPopup, g_plugin.PopupRightClickAction);
break;
case UM_FREEPLUGINDATA:
@@ -110,13 +110,13 @@ void ShowPopup(LPCTSTR ptszTitle, LPCTSTR ptszText, int Number)
}
else {
ppd.PluginWindowProc = PopupDlgProc;
- ppd.iSeconds = PopupOptions.Timeout;
+ ppd.iSeconds = g_plugin.PopupTimeout;
}
lstrcpyn(ppd.lpwzText, ptszText, MAX_SECONDLINE);
lstrcpyn(ppd.lpwzContactName, ptszTitle, MAX_CONTACTNAME);
- switch (PopupOptions.DefColors) {
+ switch (g_plugin.PopupDefColors) {
case byCOLOR_WINDOWS:
ppd.colorBack = GetSysColor(COLOR_BTNFACE);
ppd.colorText = GetSysColor(COLOR_WINDOWTEXT);