refactor: enhance error handling in Timer and update server argument collection

This commit is contained in:
Tunglies
2025-11-06 10:42:21 +08:00
parent 651513c826
commit aaf3ebe547
4 changed files with 11 additions and 6 deletions

View File

@@ -4,8 +4,8 @@ fn main() {
console_subscriber::init();
// Check for --no-tray command line argument
let args: Vec<String> = std::env::args().collect();
if args.contains(&"--no-tray".into()) {
#[cfg(target_os = "linux")]
if std::env::args().any(|x| x == "--no-tray") {
unsafe {
std::env::set_var("CLASH_VERGE_DISABLE_TRAY", "1");
}