Unify Windows AppUserModelID across app, toast, and installer

This commit is contained in:
2026-06-10 09:12:39 -06:00
parent 1b8e60c26d
commit b1d8f21f2b
4 changed files with 16 additions and 6 deletions

View File

@@ -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

View File

@@ -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)
{