Fix: Windows Build Type Error (Emitter)

This commit is contained in:
Youwes09
2026-03-22 14:44:05 -05:00
parent 29323c534b
commit a27c20fabf
+2 -2
View File
@@ -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 });
}, },
|| {}, || {},
) )