feat: Added Minimize to System Tray While Monitor Is Running. Closes #6.
This commit is contained in:
@@ -196,3 +196,8 @@ pub async fn monitor_resolve_host(ip: String) -> Result<Option<String>, String>
|
||||
let parsed: IpAddr = ip.parse().map_err(|e| format!("Invalid IP: {}", e))?;
|
||||
Ok(crate::net::dns::reverse_lookup(parsed).await)
|
||||
}
|
||||
pub fn is_monitor_running() -> bool {
|
||||
let state = get_monitor();
|
||||
let guard = state.blocking_lock();
|
||||
guard.running
|
||||
}
|
||||
Reference in New Issue
Block a user