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
|
|
@ -35,7 +35,7 @@ impl Screen<(), Medium> for MediumSelector {
|
|||
fn new(_: (), handle: NavigationHandle<Medium>) -> Rc<Self> {
|
||||
// Create UI
|
||||
|
||||
let selector = Selector::<PersonOrEnsemble>::new();
|
||||
let selector = Selector::<PersonOrEnsemble>::new(Rc::clone(&handle.backend));
|
||||
selector.set_title(&gettext("Select performer"));
|
||||
|
||||
let this = Rc::new(Self {
|
||||
|
|
@ -127,7 +127,7 @@ struct MediumSelectorMediumScreen {
|
|||
|
||||
impl Screen<PersonOrEnsemble, Medium> for MediumSelectorMediumScreen {
|
||||
fn new(poe: PersonOrEnsemble, handle: NavigationHandle<Medium>) -> Rc<Self> {
|
||||
let selector = Selector::<Medium>::new();
|
||||
let selector = Selector::<Medium>::new(Rc::clone(&handle.backend));
|
||||
selector.set_title(&gettext("Select medium"));
|
||||
selector.set_subtitle(&poe.get_title());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue