Skip to content

Commit ec79e29

Browse files
committed
don't show notif when listening
1 parent 4d10444 commit ec79e29

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

RustApp/src/ui/app.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -483,23 +483,6 @@ impl Application for AppState {
483483
system_tray.update_menu_state(false, &fl!("state_listening"));
484484
}
485485

486-
if self.main_window.is_none() {
487-
let address = format!(
488-
"{}:{}",
489-
ip.unwrap_or(IpAddr::V4(Ipv4Addr::UNSPECIFIED)),
490-
port.unwrap_or_default()
491-
);
492-
// show notification when app is minimized
493-
let _ = Notification::new()
494-
.summary("AndroidMic")
495-
.body(format!("Listening on {address}").as_str())
496-
.auto_icon()
497-
.show()
498-
.map_err(|e| {
499-
error!("failed to show notification: {e}");
500-
});
501-
}
502-
503486
self.connection_state = ConnectionState::Listening;
504487
if let (Some(ip), Some(port)) = (ip, port) {
505488
info!("listening on {ip}:{port}");

0 commit comments

Comments
 (0)