mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-10 04:22:13 +10:00
feat: Add NO_TRAY_ICON to compilation to disable tray in binary
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -486,6 +486,9 @@ fn run_on_tray<T: FnOnce()>(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)();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user