Basic support for random programs

This commit is contained in:
Elias Projahn 2024-06-10 16:57:36 +02:00
parent 016bace36e
commit 815dede141
4 changed files with 170 additions and 104 deletions

View file

@ -154,6 +154,7 @@ impl MusicusWindow {
fn load_library(&self, path: impl AsRef<Path>) {
let library = MusicusLibrary::new(path);
self.imp().player.set_library(&library);
let navigation = self.imp().navigation_view.get();
navigation.replace(&[MusicusHomePage::new(&navigation, &library, &self.imp().player).into()]);