cleanup(bluetooth): remove extra toggles

This commit is contained in:
Ashley Wulber 2023-10-25 11:15:57 -04:00 committed by Ashley Wulber
parent e677ceba14
commit ea0ae6e874

View file

@ -352,30 +352,13 @@ impl cosmic::Application for CosmicBluetoothApplet {
} }
let mut content = column![ let mut content = column![
column![ column![padded_control(
padded_control( toggler(fl!("bluetooth"), self.bluer_state.bluetooth_enabled, |m| {
toggler(fl!("bluetooth"), self.bluer_state.bluetooth_enabled, |m| { Message::Request(BluerRequest::SetBluetoothEnabled(m))
Message::Request(BluerRequest::SetBluetoothEnabled(m)) },)
},) .text_size(14)
.text_size(14) .width(Length::Fill)
.width(Length::Fill) ),],
),
// these are not in the UX mockup, but they are useful imo
padded_control(
toggler(fl!("discoverable"), self.bluer_state.discoverable, |m| {
Message::Request(BluerRequest::SetDiscoverable(m))
},)
.text_size(14)
.width(Length::Fill)
),
padded_control(
toggler(fl!("pairable"), self.bluer_state.pairable, |m| {
Message::Request(BluerRequest::SetPairable(m))
},)
.text_size(14)
.width(Length::Fill)
)
],
padded_control(divider::horizontal::default()), padded_control(divider::horizontal::default()),
known_bluetooth, known_bluetooth,
] ]