From 8518d6e24732d323424a55a2c43cb1803b29e379 Mon Sep 17 00:00:00 2001 From: Fabio Lenherr / DashieTM Date: Wed, 6 Dec 2023 19:15:39 +0100 Subject: [PATCH] chore: Show address for bluetooth --- src/components/bluetooth/bluetooth_entry.rs | 6 ++- .../bluetooth/bluetooth_entry_impl.rs | 2 + src/resources/resetBluetoothEntry.ui | 40 ++++++++++++++----- src/resources/resetUI.cmb | 40 +++++++++++++------ 4 files changed, 65 insertions(+), 23 deletions(-) diff --git a/src/components/bluetooth/bluetooth_entry.rs b/src/components/bluetooth/bluetooth_entry.rs index 58f4aff..91e0487 100644 --- a/src/components/bluetooth/bluetooth_entry.rs +++ b/src/components/bluetooth/bluetooth_entry.rs @@ -3,7 +3,6 @@ use std::time::Duration; use crate::components::bluetooth::bluetooth_entry_impl; use adw::glib::Object; -use adw::prelude::ActionRowExt; use adw::subclass::prelude::ObjectSubclassIsExt; use adw::{glib, ActionRow}; use dbus::blocking::Connection; @@ -29,7 +28,10 @@ impl BluetoothEntry { .reset_bluetooth_label .get() .set_text(&device.alias); - entry.set_subtitle(&device.address); + entry_imp + .reset_bluetooth_address + .get() + .set_text(&device.address); entry.set_activatable(true); if device.icon.is_empty() { entry_imp diff --git a/src/components/bluetooth/bluetooth_entry_impl.rs b/src/components/bluetooth/bluetooth_entry_impl.rs index f91f55b..f280d2c 100644 --- a/src/components/bluetooth/bluetooth_entry_impl.rs +++ b/src/components/bluetooth/bluetooth_entry_impl.rs @@ -14,6 +14,8 @@ pub struct BluetoothEntry { #[template_child] pub reset_bluetooth_label: TemplateChild