From 63ccf9482d4328cbbcf597c137954211f7bd24c2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2024 17:19:29 +0300 Subject: Msg_Export: unused icons removed --- plugins/Msg_Export/src/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Msg_Export/src/main.cpp') diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp index 7eb98a030b..76daadba0f 100644 --- a/plugins/Msg_Export/src/main.cpp +++ b/plugins/Msg_Export/src/main.cpp @@ -22,11 +22,6 @@ CMPlugin g_plugin; MWindowList hInternalWindowList = nullptr; -IconItem iconList[] = -{ - { "Main icon", "main", IDI_EXPORT_MESSAGE }, -}; - ///////////////////////////////////////////////////// // Remember to update the Version in the resource !!! ///////////////////////////////////////////////////// @@ -120,7 +115,7 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) CMenuItem mi(&g_plugin); SET_UID(mi, 0x4e889089, 0x2304, 0x425f, 0x8f, 0xaa, 0x4f, 0x8a, 0x7b, 0x26, 0x4d, 0x4d); // {4E889089-2304-425F-8FAA-4F8A7B264D4D} - mi.hIcolibItem = iconList[0].hIcolib; + mi.hIcolibItem = g_plugin.getIconHandle(IDI_MAIN); mi.position = 1000090101; mi.name.a = LPGEN("Export history"); mi.pszService = MS_EXPORT_HISTORY; @@ -128,7 +123,7 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) if (!g_bReplaceHistory) { SET_UID(mi, 0x701c543, 0xd078, 0x41dd, 0x95, 0xe3, 0x96, 0x49, 0x8a, 0x72, 0xc7, 0x50); - mi.hIcolibItem = iconList[0].hIcolib; + mi.hIcolibItem = g_plugin.getIconHandle(IDI_MAIN); mi.position = 1000090100; mi.name.a = LPGEN("Open E&xported History"); mi.pszService = MS_SHOW_EXPORT_HISTORY; @@ -152,6 +147,11 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) // Developer : KN ///////////////////////////////////////////////////////////////////// +static IconItem iconList[] = +{ + { "Main icon", "main", IDI_MAIN }, +}; + int CMPlugin::Load() { registerIcon(MODULENAME, iconList, MODULENAME); -- cgit v1.2.3