Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hyvart/Unjammit
Browse files Browse the repository at this point in the history
  • Loading branch information
JunielKatarn committed May 2, 2021
2 parents 5a72952 + e3e85e3 commit 3e67466
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Forms/Views/MenuPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
xmlns:local="clr-namespace:Jammit.Forms.Views"
xmlns:models="clr-namespace:Jammit.Forms.Models"
xmlns:xaml="clr-namespace:Jammit.Forms.Xaml"
x:Class="Jammit.Forms.Views.MenuPage"
>
<!--TODO: GTK does not acknowledge XAML Title binding-->
x:Class="Jammit.Forms.Views.MenuPage">
<!--TODO: OnPlatform Default helps non-supported platforms set the value (i.e. GTK).-->
<StackLayout VerticalOptions="FillAndExpand">
<ListView x:Name="MenuListView" x:FieldModifier="public">
<ListView.ItemsSource>
Expand Down
5 changes: 4 additions & 1 deletion Forms/Views/MenuPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ public MenuPage()
InitializeComponent();

//TODO: Bind (fails on Gtk, prints "Binding" on other platforms.
Title = Localized.MenuPage_Title;
if (Device.GTK == Device.RuntimePlatform)
Title = "Menu";
else
Title = Localized.MenuPage_Title;
}

private async void OpenButton_Clicked(object sender, EventArgs e)
Expand Down

0 comments on commit 3e67466

Please sign in to comment.