Add: tray for tauri
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user