File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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}" ) ;
You can’t perform that action at this time.
0 commit comments