diff options
author | George Hazan <ghazan@miranda.im> | 2017-07-28 23:36:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-07-28 23:37:39 +0300 |
commit | 18afe232354c2e0a68ed53d69e2bb546f5c5232e (patch) | |
tree | 62f56ba4d8cc77240b4f29ab21e44eb91701c201 /plugins/TabSRMM/src | |
parent | 2306915ba187941dab99fbfc2f74ed787b1a847f (diff) |
fix for wrongly removed services
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ -1002,6 +1002,22 @@ int IconsChanged(WPARAM, LPARAM) }
/////////////////////////////////////////////////////////////////////////////////////////
+// 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...
static void TSAPI InitAPI()
@@ -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);
|