fix(presence): keep rich presence synced with launcher state

Refresh idle activity from live mode, stats, user, and config changes, replace activity snapshots so cleared buttons and images are removed, and keep retrying Discord IPC until presence is disabled.
This commit is contained in:
HorizonCode committed 2026-11-12 12:59:56 +01:00
1 parent e1c04c4f5b
commit 34e93ee29b
7 files changed
+137 -125

No files matched your search

+9 -9
View File
@@ -6,15 +6,15 @@ export type PresenceButtonPayload = {
};
export type PresenceActivityPayload = {
state?: string;
details?: string;
largeImageKey?: string;
largeImageText?: string;
smallImageKey?: string | null;
smallImageText?: string | null;
button1?: PresenceButtonPayload | null;
button2?: PresenceButtonPayload | null;
showTimestamp?: boolean;
state: string;
details: string;
largeImageKey: string;
largeImageText: string;
smallImageKey: string | null;
smallImageText: string | null;
button1: PresenceButtonPayload | null;
button2: PresenceButtonPayload | null;
showTimestamp: boolean;
};
export const connect = async () => await invoke('presence_connect');