diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-08 13:06:50 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-08 13:06:50 +0300 |
commit | 9d057cf06cdedc6c6323765b34ec2d5d26caa1e9 (patch) | |
tree | 200d6c2ee0aff02ff60d1c74cf0cff99dd1470e5 /plugins/Toaster/src/services.cpp | |
parent | dfc78b362d5e37f4cfe45f9be42c63e400a4eae4 (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.cpp | 3 |
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();
}
|