From 42ff3b133137284728cc1509855d055d4e012125 Mon Sep 17 00:00:00 2001 From: quexeky Date: Thu, 25 Sep 2025 19:30:54 +1000 Subject: [PATCH] feat: Add NO_TRAY_ICON to compilation to disable tray in binary Signed-off-by: quexeky --- src-tauri/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 90caf5c..d6c7d4e 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -486,6 +486,9 @@ fn run_on_tray(f: T) { if match std::env::var("NO_TRAY_ICON") { Ok(s) => s.to_lowercase() != "true", Err(_) => true, + } || match option_env!("NO_TRAY_ICON") { + Some(s) => s.to_lowercase() != "true", + None => true, } { (f)(); }