fix: destroy floating window instead of close

This commit is contained in:
Memory 2026-03-09 22:17:54 +08:00 committed by GitHub
parent 1a52bff8af
commit b9a7e04eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()