Make discovery stop when menu widget is closed (#1213)

This commit is contained in:
Taneli 2025-12-22 22:18:02 +02:00 committed by GitHub
parent 588afe5a9d
commit 90ecba2d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))