Share whether to use the server across screens

This commit is contained in:
Elias Projahn 2021-05-07 20:44:27 +02:00
parent f92a80be87
commit df6e2e86c7
16 changed files with 76 additions and 31 deletions

View file

@ -16,7 +16,7 @@ pub struct InstrumentEditor {
editor: Editor,
name: EntryRow,
upload: UploadSection,
upload: Rc<UploadSection>,
}
impl Screen<Option<Instrument>, Instrument> for InstrumentEditor {
@ -33,7 +33,7 @@ impl Screen<Option<Instrument>, Instrument> for InstrumentEditor {
list.append(&name.widget);
let section = Section::new(&gettext("General"), &list);
let upload = UploadSection::new();
let upload = UploadSection::new(Rc::clone(&handle.backend));
editor.add_content(&section.widget);
editor.add_content(&upload.widget);