exit rclone before relaunching
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user