Skip to content

Commit

Permalink
Removed \n from music sheet names
Browse files Browse the repository at this point in the history
  • Loading branch information
josdemmers committed Aug 22, 2022
1 parent 787250e commit 98bc9de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions NewWorldCompanion.Entities/CraftingRecipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ public class CraftingRecipe
[JsonIgnore]
public string Localisation { get; set; } = string.Empty;
[JsonIgnore]
public string LocalisationUserFriendly
{
get
{
return Localisation.Replace("\\n", " ");
}
}
[JsonIgnore]
public string Tradeskill { get; set; } = string.Empty;
[JsonIgnore]
public string Url
Expand Down
4 changes: 2 additions & 2 deletions NewWorldCompanion/Views/Tabs/CraftingView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<BulletDecorator Margin="0,0,5,0">
<Ellipse Fill="{Binding Learned, Converter={StaticResource BooleanToLearnedColorConverter}}" Width="10" Height="10"/>
</BulletDecorator>
<Label Margin="0,0,10,0" Content="{Binding Path=Localisation}" />
<Label Margin="0,0,10,0" Content="{Binding Path=LocalisationUserFriendly}" />
</StackPanel>
</Border>
</DataTemplate>
Expand All @@ -115,7 +115,7 @@
Margin="5"
Visibility="{Binding SelectedCraftingRecipe, Converter={StaticResource EmptyToVisibilityConverter}}">
<StackPanel Orientation="Horizontal">
<CheckBox Content="{Binding SelectedCraftingRecipe.Localisation}"
<CheckBox Content="{Binding SelectedCraftingRecipe.LocalisationUserFriendly}"
IsChecked="{Binding SelectedCraftingRecipe.Learned}"
Command="{Binding CraftingRecipeLearnedCommand}"
CommandParameter="{Binding IsChecked, RelativeSource={RelativeSource Self}}"/>
Expand Down
4 changes: 2 additions & 2 deletions NewWorldCompanion/common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<FileVersion>1.0.7.0</FileVersion>
<Version>1.0.7.0</Version>
<FileVersion>1.0.7.1</FileVersion>
<Version>1.0.7.1</Version>
<Copyright>Copyright © 2022</Copyright>
<TargetFramework>net6.0-windows</TargetFramework>
</PropertyGroup>
Expand Down

0 comments on commit 98bc9de

Please sign in to comment.