mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-13 08:00: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> {
|
||||
if (floatingWindow) {
|
||||
ipcMain.removeAllListeners('updateFloatingWindow')
|
||||
floatingWindow.close()
|
||||
floatingWindow.destroy()
|
||||
floatingWindow = null
|
||||
}
|
||||
await showTrayIcon()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user