editor: First changes for work editor

This commit is contained in:
Elias Projahn 2024-05-31 13:39:27 +02:00
parent 15ba043050
commit 55b344605b
19 changed files with 1291 additions and 19 deletions

View file

@ -5,7 +5,7 @@ use adw::{
use gtk::glib::{self, Properties};
use std::cell::OnceCell;
use crate::editor::person_editor::MusicusPersonEditor;
use crate::editor::work_editor::MusicusWorkEditor;
use crate::library::MusicusLibrary;
mod imp {
@ -39,7 +39,7 @@ mod imp {
impl ObjectImpl for LibraryManager {
fn constructed(&self) {
self.parent_constructed();
self.obj().set_child(Some(&MusicusPersonEditor::new()));
self.obj().set_child(Some(&MusicusWorkEditor::new(self.library.get().unwrap())));
}
}