File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -411,14 +411,14 @@ impl BluetoothSettings {
411411 & ' a self ,
412412 _theme : & ' a AshellTheme ,
413413 ) -> Option < Element < ' a , Message > > {
414- if let Some ( service) = & self . service {
415- if service. state == BluetoothState :: Active {
416- let connected_count = service . devices . iter ( ) . filter ( |d| d . connected ) . count ( ) ;
417- if connected_count > 0 {
418- return Some ( icon ( StaticIcon :: BluetoothConnected ) . into ( ) ) ;
419- } else {
420- return Some ( icon ( StaticIcon :: Bluetooth ) . into ( ) ) ;
421- }
414+ if let Some ( service) = & self . service
415+ && service. state == BluetoothState :: Active
416+ {
417+ let connected_count = service . devices . iter ( ) . filter ( |d| d . connected ) . count ( ) ;
418+ if connected_count > 0 {
419+ return Some ( icon ( StaticIcon :: BluetoothConnected ) . into ( ) ) ;
420+ } else {
421+ return Some ( icon ( StaticIcon :: Bluetooth ) . into ( ) ) ;
422422 }
423423 }
424424 None
You can’t perform that action at this time.
0 commit comments