diff options
Diffstat (limited to 'plugins/SmileyAdd/src/services.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/services.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index c85d1789c9..4fd7bc9771 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -351,12 +351,25 @@ INT_PTR ReloadPack(WPARAM, LPARAM lParam) if (smc != NULL) smc->Load();
}
else
+ {
+ g_SmileyCategories.ClearAll();
+ g_SmileyCategories.AddAllProtocolsAsCategory();
g_SmileyCategories.ClearAndLoadAll();
+ }
NotifyEventHooks(hEvent1, 0, 0);
return 0;
}
+INT_PTR ReloadOptions(WPARAM, LPARAM)
+{
+ g_SmileyCategories.ClearAll();
+ g_SmileyCategories.AddAllProtocolsAsCategory();
+ g_SmileyCategories.ClearAndLoadAll();
+ opt.Load();
+ return 0;
+}
+
INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam)
{
if (opt.DisableCustom) return 0;
@@ -445,3 +458,10 @@ int DbSettingChanged(WPARAM hContact, LPARAM lParam) }
return 0;
}
+
+
+int ReloadColour(WPARAM, LPARAM)
+{
+ opt.SelWndBkgClr = db_get_dw(NULL, "SmileyAdd", "SelWndBkgClr", GetSysColor(COLOR_WINDOW));
+ return 0;
+}
\ No newline at end of file |