exit rclone before relaunching

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-08-13 04:47:42 +02:00
parent a39e600dcf
commit cc3b35a4ea
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -23,6 +23,7 @@ import {
homeDir,
tempDir,
} from '@tauri-apps/api/path'
import { getCurrentWindow } from '@tauri-apps/api/window'
import { writeText } from '@tauri-apps/plugin-clipboard-manager'
import { ask, message } from '@tauri-apps/plugin-dialog'
import { remove } from '@tauri-apps/plugin-fs'
@@ -327,6 +328,9 @@ function GeneralSection() {
return
}
await getCurrentWindow().emit('close-app')
await new Promise((resolve) => setTimeout(resolve, 200))
await relaunch()
}, [update])