mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-11 17:30:18 +00:00
Unify Windows AppUserModelID across app, toast, and installer
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <windows.h>
|
||||
#include <dwmapi.h>
|
||||
#include <glib/gwin32.h>
|
||||
#include "../../win32/appusermodelid.h"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@@ -140,7 +141,7 @@ win32_set_appusermodelid (void)
|
||||
if (!set_appid)
|
||||
return;
|
||||
|
||||
set_appid (L"ZoiteChat.Desktop.Notify");
|
||||
set_appid (ZOITECHAT_APPUSERMODELIDW);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <roapi.h>
|
||||
#include <windows.ui.notifications.h>
|
||||
#include "../../../win32/appusermodelid.h"
|
||||
|
||||
using namespace Windows::UI::Notifications;
|
||||
using namespace Windows::Data::Xml::Dom;
|
||||
@@ -87,7 +88,7 @@ extern "C"
|
||||
try
|
||||
{
|
||||
if (!notifier)
|
||||
notifier = ToastNotificationManager::CreateToastNotifier (L"ZoiteChat.Desktop.Notify");
|
||||
notifier = ToastNotificationManager::CreateToastNotifier (ZOITECHAT_APPUSERMODELIDW);
|
||||
}
|
||||
catch (Platform::Exception ^ ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user