Skip to content

Commit

Permalink
Handle missingTo better
Browse files Browse the repository at this point in the history
  • Loading branch information
Dijji committed Nov 26, 2019
1 parent d959e5b commit e2b3a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<TextBlock DataContext="{Binding Path=CurrentMessage}" Text="{Binding Path=From}"
FontSize="12"/>
<TextBlock DataContext="{Binding Path=CurrentMessage}" Text="{Binding Path=ToDisplayList}"
FontSize="12"/>
FontSize="12" Visibility="{Binding Path=HasToDisplayList, Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock DataContext="{Binding Path=CurrentMessage}" Text="{Binding Path=CcDisplayList}"
FontSize="12" Visibility="{Binding Path=HasCcDisplayList, Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock DataContext="{Binding Path=CurrentMessage}" Text="{Binding Path=BccDisplayList}"
Expand Down
1 change: 1 addition & 0 deletions View.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class Message : INotifyPropertyChanged
public bool ShowHtml { get { return NativeBody == BodyType.HTML || (NativeBody == BodyType.Undefined &&
((BodyHtml != null && BodyHtml.Length > 0) || (Html != null && Html.Length > 0))); } }
public bool ShowRtf { get { return NativeBody == BodyType.RTF || (NativeBody == BodyType.Undefined && RtfCompressed != null && RtfCompressed.Length > 0); } }
public bool HasToDisplayList { get { return ToDisplayList.Length > 0; } }
public string ToDisplayList
{
get
Expand Down

0 comments on commit e2b3a31

Please sign in to comment.