fix: 将通知头像存储在缓存文件中,通过LRU缓存维护头像缓存数量,点击通知后可以跳转到对应的会话窗口(fixes #654)

This commit is contained in:
fatfathao
2026-04-07 23:25:36 +08:00
parent 902d2c9c74
commit 7a51d8cf64
7 changed files with 283 additions and 97 deletions

View File

@@ -27,6 +27,14 @@ export function destroyNotificationWindow() {
}
lastNotificationData = null;
// Linux:关闭通知服务并清理缓存fire-and-forget不阻塞退出
if (isLinux && linuxNotificationService) {
linuxNotificationService.shutdownLinuxNotificationService().catch((error) => {
console.warn("[NotificationWindow] Failed to shutdown Linux notification service:", error);
});
linuxNotificationService = null;
}
if (!notificationWindow || notificationWindow.isDestroyed()) {
notificationWindow = null;
return;