improve(bluetooth): ignore devices with unknown type and without alias

This commit is contained in:
Alexander Bachmann 2025-02-10 13:13:14 +01:00 committed by GitHub
parent fd15399141
commit 0f4667fc47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 2 deletions

View file

@ -528,6 +528,7 @@ impl cosmic::Application for CosmicBluetoothApplet {
.request_confirmation
.as_ref()
.map_or(false, |(dev, _, _)| d.address == dev.address)
&& (d.has_name() || d.is_known_device_type())
}) {
let row = row![
icon::from_name(dev.icon.as_str()).size(16).symbolic(true),