feat: Set volume as default

This commit is contained in:
dashie 2023-12-11 12:57:11 +00:00
parent 3b94bd76f3
commit 323aab4aa8

View file

@ -23,14 +23,7 @@ unsafe impl Sync for ReSetWindow {}
impl ReSetWindow { impl ReSetWindow {
pub fn new(app: &Application) -> Self { pub fn new(app: &Application) -> Self {
let obj: Self = Object::builder().property("application", app).build(); Object::builder().property("application", app).build()
let imp = obj.imp();
(HANDLE_HOME)(
imp.listeners.clone(),
imp.reset_main.get(),
imp.position.clone(),
);
obj
} }
pub fn setup_callback(&self) { pub fn setup_callback(&self) {
@ -219,16 +212,21 @@ impl ReSetWindow {
// ), // ),
// ]; // ];
// sidebarEntries.push(( // let home = SidebarEntry::new(
// SidebarEntry::new( // "Home",
// "Peripherals", // "preferences-system-devices-symbolic",
// "preferences-system-devices-symbolic", // Categories::Peripherals,
// Categories::Peripherals, // false,
// false, // HANDLE_VOLUME_CLICK,
// HANDLE_PERIPHERALS_CLICK, // );
// ), //
// peripheralsList, // sidebar_entries.push((home, Vec::new()));
// ));
(HANDLE_VOLUME_CLICK)(
self_imp.listeners.clone(),
self_imp.reset_main.clone(),
self_imp.position.clone(),
);
self_imp self_imp
.reset_sidebar_list .reset_sidebar_list