summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-08 13:06:50 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-08 13:06:50 +0300
commit9d057cf06cdedc6c6323765b34ec2d5d26caa1e9 (patch)
tree200d6c2ee0aff02ff60d1c74cf0cff99dd1470e5 /plugins/Toaster/src/services.cpp
parentdfc78b362d5e37f4cfe45f9be42c63e400a4eae4 (diff)
Toaster: cache Miranda's app icon for the future use
Diffstat (limited to 'plugins/Toaster/src/services.cpp')
-rw-r--r--plugins/Toaster/src/services.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp
index b70dfe253d..634949eb76 100644
--- a/plugins/Toaster/src/services.cpp
+++ b/plugins/Toaster/src/services.cpp
@@ -2,6 +2,7 @@
std::map<std::string, ClassData*> mp_Classes;
wchar_t wszTempDir[MAX_PATH];
+ptrW g_wszAppIcon;
void __stdcall ShowToastNotification(void *p)
{
@@ -203,4 +204,6 @@ void InitServices()
CreateServiceFunction(MS_POPUP_GETCONTACT, GetPopupContact);
CreateServiceFunction(MS_POPUP_DESTROYPOPUP, HideToast);
+
+ g_wszAppIcon = ToasterImage(IcoLib_GetIconByHandle(Skin_GetIconHandle(SKINICON_OTHER_MIRANDA), true)).Save();
}