Improve moving data system
This commit is contained in:
5 files changed
+26
-26
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user