From a27c20fabfd53eb7a6f2155dc78ee6986dfb8a03 Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Sun, 22 Mar 2026 14:44:05 -0500 Subject: [PATCH] Fix: Windows Build Type Error (Emitter) --- src-tauri/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5c08c61..17eb8bf 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3,7 +3,7 @@ use std::sync::Mutex; use std::io::Write; use sysinfo::Disks; use serde::Serialize; -use tauri::{Manager, WindowEvent}; +use tauri::{Manager, WindowEvent, Emitter}; use tauri_plugin_shell::{ShellExt, process::CommandChild}; use walkdir::WalkDir; @@ -507,7 +507,7 @@ async fn download_and_install_update(app: tauri::AppHandle) -> Result<(), String update .download_and_install( move |downloaded, total| { - let _ = app_clone.emit("update-progress", UpdateProgress { downloaded, total }); + let _ = app_clone.emit("update-progress", UpdateProgress { downloaded: downloaded as u64, total }); }, || {}, )