From 18afe232354c2e0a68ed53d69e2bb546f5c5232e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Jul 2017 23:36:53 +0300 Subject: fix for wrongly removed services --- plugins/TabSRMM/src/msgs.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index e126a4b289..3c1b5051e0 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -1001,6 +1001,22 @@ int IconsChanged(WPARAM, LPARAM) return 0; } +///////////////////////////////////////////////////////////////////////////////////////// +// services needed for assembly management + +static INT_PTR ReloadSkin(WPARAM, LPARAM) +{ + Skin->setFileName(); + Skin->Load(); + return 0; +} + +static INT_PTR ReloadSettings(WPARAM, LPARAM lParam) +{ + PluginConfig.reloadSettings(lParam != 0); + return 0; +} + ///////////////////////////////////////////////////////////////////////////////////////// // initialises the internal API, services, events etc... @@ -1010,8 +1026,12 @@ static void TSAPI InitAPI() CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W); CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText); + CreateServiceFunction("TabSRMsg/ReloadSkin", ReloadSkin); + CreateServiceFunction("TabSRMsg/ReloadSettings", ReloadSettings); + CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand); CreateServiceFunction("SRMsg/TypingMessage", TypingMessageCommand); + CreateServiceFunction(MS_TABMSG_SETUSERPREFS, SetUserPrefs); CreateServiceFunction(MS_TABMSG_TRAYSUPPORT, Service_OpenTrayMenu); CreateServiceFunction(MS_TABMSG_SLQMGR, CSendLater::svcQMgr); -- cgit v1.2.3