fix: Fixed Slowness on Startup by Spawning Registry Key Fix in Thread Instead of Main Process

This commit is contained in:
2026-10-09 13:22:18 -04:00
parent e5d0398ac0
commit d9bd069587
+1 -1
View File
@@ -72,7 +72,7 @@ pub fn run() {
let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?;
let menu = Menu::with_items(app, &[&show, &quit])?;
#[cfg(target_os = "windows")]
register_aumid();
std::thread::spawn(|| register_aumid());
let _tray = TrayIconBuilder::new()
.icon(app.default_window_icon().unwrap().clone())
.tooltip("Argus - Network Scanner")