From ea0ae6e87427fa6d80b5e7da7ea59f079fb2827e Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 25 Oct 2023 11:15:57 -0400 Subject: [PATCH] cleanup(bluetooth): remove extra toggles --- cosmic-applet-bluetooth/src/app.rs | 31 +++++++----------------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/cosmic-applet-bluetooth/src/app.rs b/cosmic-applet-bluetooth/src/app.rs index 0162476e..bb749e06 100644 --- a/cosmic-applet-bluetooth/src/app.rs +++ b/cosmic-applet-bluetooth/src/app.rs @@ -352,30 +352,13 @@ impl cosmic::Application for CosmicBluetoothApplet { } let mut content = column![ - column![ - padded_control( - toggler(fl!("bluetooth"), self.bluer_state.bluetooth_enabled, |m| { - Message::Request(BluerRequest::SetBluetoothEnabled(m)) - },) - .text_size(14) - .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) - ) - ], + column![padded_control( + toggler(fl!("bluetooth"), self.bluer_state.bluetooth_enabled, |m| { + Message::Request(BluerRequest::SetBluetoothEnabled(m)) + },) + .text_size(14) + .width(Length::Fill) + ),], padded_control(divider::horizontal::default()), known_bluetooth, ]