Skip to content

Commit

Permalink
Fix the age-old problem of the addtoplaylist selector ending up in th…
Browse files Browse the repository at this point in the history
…e view...

By _making_ it the Title View! Yeah!
  • Loading branch information
Difegue committed Sep 20, 2023
1 parent 3b6ffa7 commit 9e6a668
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public AddToPlaylistViewController(MPDConnectionService mpdService, bool allowEx

Playlists = new ObservableCollection<MpdPlaylist>(mpdService.Playlists);

Title = Strings.AddToPlaylistTitle;
ModalPresentationStyle = UIModalPresentationStyle.FormSheet;
ModalTransitionStyle = UIModalTransitionStyle.CoverVertical;

Expand Down Expand Up @@ -92,7 +91,9 @@ public override void LoadView()
};

if (AllowExistingPlaylists)
stackView.AddArrangedSubview(playlistSwitch);
NavigationItem.TitleView = playlistSwitch;
else
Title = Strings.AddToPlaylistCreateNewPlaylist;

if (AllowExistingPlaylists)
stackView.AddArrangedSubview(playlistPicker);
Expand Down

0 comments on commit 9e6a668

Please sign in to comment.