mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-08 22:52:01 +02:00
feat: Set volume as default
This commit is contained in:
parent
3b94bd76f3
commit
323aab4aa8
|
@ -23,14 +23,7 @@ unsafe impl Sync for ReSetWindow {}
|
|||
|
||||
impl ReSetWindow {
|
||||
pub fn new(app: &Application) -> Self {
|
||||
let obj: Self = Object::builder().property("application", app).build();
|
||||
let imp = obj.imp();
|
||||
(HANDLE_HOME)(
|
||||
imp.listeners.clone(),
|
||||
imp.reset_main.get(),
|
||||
imp.position.clone(),
|
||||
);
|
||||
obj
|
||||
Object::builder().property("application", app).build()
|
||||
}
|
||||
|
||||
pub fn setup_callback(&self) {
|
||||
|
@ -219,16 +212,21 @@ impl ReSetWindow {
|
|||
// ),
|
||||
// ];
|
||||
|
||||
// sidebarEntries.push((
|
||||
// SidebarEntry::new(
|
||||
// "Peripherals",
|
||||
// "preferences-system-devices-symbolic",
|
||||
// Categories::Peripherals,
|
||||
// false,
|
||||
// HANDLE_PERIPHERALS_CLICK,
|
||||
// ),
|
||||
// peripheralsList,
|
||||
// ));
|
||||
// let home = SidebarEntry::new(
|
||||
// "Home",
|
||||
// "preferences-system-devices-symbolic",
|
||||
// Categories::Peripherals,
|
||||
// false,
|
||||
// HANDLE_VOLUME_CLICK,
|
||||
// );
|
||||
//
|
||||
// sidebar_entries.push((home, Vec::new()));
|
||||
|
||||
(HANDLE_VOLUME_CLICK)(
|
||||
self_imp.listeners.clone(),
|
||||
self_imp.reset_main.clone(),
|
||||
self_imp.position.clone(),
|
||||
);
|
||||
|
||||
self_imp
|
||||
.reset_sidebar_list
|
||||
|
|
Loading…
Reference in a new issue