Improve moving data system

This commit is contained in:
Lncvrt committed 2026-07-28 12:59:33 -07:00
1 parent 916e9bc08c
commit e9286c4b64
5 files changed
+26 -26

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
"core:window:allow-toggle-maximize",
"core:window:allow-request-user-attention",
"core:window:allow-show",
"core:window:allow-hide",
"core:webview:allow-create-webview-window",
"fs:default",
"fs:allow-remove",
-6
View File
@@ -635,11 +635,6 @@ async fn move_game_data(app: AppHandle, destination: String) -> Result<(), Strin
Ok(())
}
#[tauri::command]
fn restart_app(app: AppHandle) {
app.restart();
}
#[tauri::command]
fn open_game_folder(app: AppHandle, version: String) -> Result<(), String> {
let dir = data_dir(&app)?;
@@ -718,7 +713,6 @@ pub fn run() {
verify_signature,
cancel_download,
move_game_data,
restart_app,
open_game_folder,
remove_stale_executable
])