mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Fix: Windows Build Type Error (Emitter)
This commit is contained in:
@@ -3,7 +3,7 @@ use std::sync::Mutex;
|
|||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use sysinfo::Disks;
|
use sysinfo::Disks;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use tauri::{Manager, WindowEvent};
|
use tauri::{Manager, WindowEvent, Emitter};
|
||||||
use tauri_plugin_shell::{ShellExt, process::CommandChild};
|
use tauri_plugin_shell::{ShellExt, process::CommandChild};
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
|
|
||||||
@@ -507,7 +507,7 @@ async fn download_and_install_update(app: tauri::AppHandle) -> Result<(), String
|
|||||||
update
|
update
|
||||||
.download_and_install(
|
.download_and_install(
|
||||||
move |downloaded, total| {
|
move |downloaded, total| {
|
||||||
let _ = app_clone.emit("update-progress", UpdateProgress { downloaded, total });
|
let _ = app_clone.emit("update-progress", UpdateProgress { downloaded: downloaded as u64, total });
|
||||||
},
|
},
|
||||||
|| {},
|
|| {},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user