mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-18 16:10:30 +08:00
fix: destroy floating window instead of close
This commit is contained in:
parent
1a52bff8af
commit
b9a7e04eee
@ -132,7 +132,7 @@ export async function triggerFloatingWindow(): Promise<void> {
|
|||||||
export async function closeFloatingWindow(): Promise<void> {
|
export async function closeFloatingWindow(): Promise<void> {
|
||||||
if (floatingWindow) {
|
if (floatingWindow) {
|
||||||
ipcMain.removeAllListeners('updateFloatingWindow')
|
ipcMain.removeAllListeners('updateFloatingWindow')
|
||||||
floatingWindow.close()
|
floatingWindow.destroy()
|
||||||
floatingWindow = null
|
floatingWindow = null
|
||||||
}
|
}
|
||||||
await showTrayIcon()
|
await showTrayIcon()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user