mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Share whether to use the server across screens
This commit is contained in:
parent
f92a80be87
commit
df6e2e86c7
16 changed files with 76 additions and 31 deletions
|
|
@ -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(§ion.widget);
|
||||
editor.add_content(&upload.widget);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue