diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-05-30 11:37:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-05-30 11:37:54 +0000 |
commit | 7b40d91a4f81cbba63ae7cabc263af69539bd22b (patch) | |
tree | 8fae732011bf7f5138092b97f3c8fcedf3990095 /plugins/YAPP/src/yapp.cpp | |
parent | 98b1830b0bef5b46ce8d023b6aeef5e6d02350bf (diff) |
Unify Popup's and YAPP's value to check if they are enabled; YAPP's version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@9369 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src/yapp.cpp')
-rw-r--r-- | plugins/YAPP/src/yapp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAPP/src/yapp.cpp b/plugins/YAPP/src/yapp.cpp index 4b8ffe32f8..9f7bb8ee2f 100644 --- a/plugins/YAPP/src/yapp.cpp +++ b/plugins/YAPP/src/yapp.cpp @@ -75,7 +75,7 @@ int IconsChanged(WPARAM, LPARAM) {
CLISTMENUITEM mi = { sizeof(mi) };
- mi.hIcon = IcoLib_GetIcon(db_get_b(0, MODULE, "Enabled", 1) ? ICO_POPUP_ON : ICO_POPUP_OFF, 0);
+ mi.hIcon = IcoLib_GetIcon(db_get_b(0, "Popup", "ModuleIsEnabled", 1) ? ICO_POPUP_ON : ICO_POPUP_OFF, 0);
mi.flags = CMIM_ICON;
Menu_ModifyItem(hMenuItem, &mi);
Menu_ModifyItem(hMenuRoot, &mi);
@@ -93,7 +93,7 @@ int TTBLoaded(WPARAM, LPARAM) ttb.pszService = "Popup/ToggleEnabled";
ttb.lParamUp = 1;
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ASPUSHBUTTON;
- if (db_get_b(0, MODULE, "Enabled", 1))
+ if (db_get_b(0, "Popup", "ModuleIsEnabled", 1))
ttb.dwFlags |= TTBBF_PUSHED;
ttb.name = LPGEN("Toggle Popups");
ttb.hIconHandleUp = Skin_GetIconHandle(ICO_TB_POPUP_OFF);
@@ -180,7 +180,7 @@ static void InitFonts() void InitMenuItems(void)
{
- bool isEnabled = db_get_b(0, MODULE, "Enabled", 1) == 1;
+ bool isEnabled = db_get_b(0, "Popup", "ModuleIsEnabled", 1) == 1;
CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = CMIF_ROOTHANDLE|CMIF_TCHAR;
|