exit & relaunching

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-12 19:14:30 +02:00
parent 1e187c447b
commit ef7a81f50b
4 changed files with 35 additions and 22 deletions
-2
View File
@@ -7,7 +7,6 @@ import { TrayIcon } from '@tauri-apps/api/tray'
import { getAllWindows, getCurrentWindow } from '@tauri-apps/api/window'
import { ask } from '@tauri-apps/plugin-dialog'
import { platform } from '@tauri-apps/plugin-os'
import { exit } from '@tauri-apps/plugin-process'
import { buildMenu } from './menu'
import { resetMainWindow } from './window'
@@ -89,7 +88,6 @@ export async function initLoadingTray() {
const answer = await ask('An operation is in progress, are you sure you want to exit?')
if (answer) {
await getCurrentWindow().emit('close-app')
await exit(0)
}
},
})