refactor: update icon variable naming for clarity and adjust macOS logging import

This commit is contained in:
Tunglies
2025-06-11 00:51:34 +08:00
Unverified
parent 5cf3e1a817
commit db3cfdf66f
2 changed files with 4 additions and 2 deletions

View File

@@ -384,7 +384,7 @@ impl Tray {
let system_mode = verge.enable_system_proxy.as_ref().unwrap_or(&false);
let tun_mode = verge.enable_tun_mode.as_ref().unwrap_or(&false);
let (is_custom_icon, icon_bytes) = match (*system_mode, *tun_mode) {
let (_is_custom_icon, icon_bytes) = match (*system_mode, *tun_mode) {
(true, true) => TrayState::get_tun_tray_icon(),
(true, false) => TrayState::get_sysproxy_tray_icon(),
(false, true) => TrayState::get_tun_tray_icon(),

View File

@@ -1,10 +1,12 @@
use crate::{
config::Config,
core::{handle, timer::Timer},
log_err, logging, logging_error,
log_err, logging,
utils::logging::Type,
};
#[cfg(target_os = "macos")]
use crate::logging_error;
#[cfg(target_os = "macos")]
use crate::AppHandleManager;