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
+1 -1
View File
@@ -34,7 +34,7 @@ export async function initRclone(args: string[]) {
}
const state = usePersistedStore.getState()
let configFiles = state.configFiles
let configFiles = state.configFiles || []
let activeConfigFile = state.activeConfigFile
const defaultPath = await getDefaultPath(system ? 'system' : 'internal')
+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])