From 77cddacc4a72768d4ebc79988accefd1a990f8c9 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Fri, 14 Mar 2025 21:43:57 +0100 Subject: [PATCH] remove port change notification --- lan-mouse-gtk/src/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lan-mouse-gtk/src/window.rs b/lan-mouse-gtk/src/window.rs index a2beca1..9fb8384 100644 --- a/lan-mouse-gtk/src/window.rs +++ b/lan-mouse-gtk/src/window.rs @@ -295,9 +295,8 @@ impl Window { } pub(super) fn update_port(&self, port: u16, msg: Option) { - match msg { - None => self.show_toast(format!("port changed: {port}").as_str()), - Some(msg) => self.show_toast(msg.as_str()), + if let Some(msg) = msg { + self.show_toast(msg.as_str()); } self.imp().set_port(port); }