Implement deletion

This commit is contained in:
Elias Projahn 2025-03-09 14:27:50 +01:00
parent b25d7fe8ee
commit 751dcde351
8 changed files with 340 additions and 40 deletions

View file

@ -29,6 +29,8 @@ mod imp {
pub player: Player,
pub process_manager: ProcessManager,
#[template_child]
pub toast_overlay: TemplateChild<adw::ToastOverlay>,
#[template_child]
pub stack: TemplateChild<gtk::Stack>,
#[template_child]
@ -242,6 +244,7 @@ impl Window {
fn reset_view(&self) {
let navigation = self.imp().navigation_view.get();
navigation.replace(&[SearchPage::new(
&self.imp().toast_overlay,
&navigation,
self.imp().library.borrow().as_ref().unwrap(),
&self.imp().player,