Add: tray for tauri

This commit is contained in:
DaZuo0122
2026-02-13 23:10:01 +08:00
parent e5e123cc84
commit 907974e61f
6 changed files with 288 additions and 8 deletions

View File

@@ -102,6 +102,20 @@ function App(): JSX.Element {
}
});
});
const unlistenDebug = await listen<boolean>(
"runtime:debug-overlay-visible",
(event) => {
if (!mounted) {
return;
}
setDebugOverlayVisible(Boolean(event.payload));
}
);
const previousUnlisten = unlisten;
unlisten = () => {
previousUnlisten();
unlistenDebug();
};
})
.catch((err) => {
if (mounted) {