From 90ecba2d78b6548391d0010aaf7c6714a61e52db Mon Sep 17 00:00:00 2001 From: Taneli <152369111+ptaneli@users.noreply.github.com> Date: Mon, 22 Dec 2025 22:18:02 +0200 Subject: [PATCH] Make discovery stop when menu widget is closed (#1213) --- cosmic-applet-bluetooth/src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cosmic-applet-bluetooth/src/app.rs b/cosmic-applet-bluetooth/src/app.rs index 386f4d42..3fed7463 100644 --- a/cosmic-applet-bluetooth/src/app.rs +++ b/cosmic-applet-bluetooth/src/app.rs @@ -267,6 +267,7 @@ impl cosmic::Application for CosmicBluetoothApplet { Message::CloseRequested(id) => { if Some(id) == self.popup { self.popup = None; + set_discovery(false); } return cosmic::task::future( set_tick(Duration::from_secs(10))