Skip to content

Commit

Permalink
Fix: Crash on startup with eMixedNite theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Mar 15, 2023
1 parent e410147 commit 4e67e7e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source/Playnite/Controls/HtmlTextView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,24 @@ public bool PartialLoadEnabled
typeof(HtmlTextView),
new PropertyMetadata(true));

// These are here only for eMixedNite themes, which used them for some reason,
// despite the fact they never did anything.
public FontFamily FontFamily { get; set; }
public static readonly DependencyProperty FontFamilyProperty =
DependencyProperty.Register(
"FontFamily",
typeof(FontFamily),
typeof(HtmlTextView),
new PropertyMetadata(null));

public double FontSize { get; set; }
public static readonly DependencyProperty FontSizeProperty =
DependencyProperty.Register(
"FontSize",
typeof(double),
typeof(HtmlTextView),
new PropertyMetadata(0.0));

internal void UpdateTextContent()
{
currentLoadedLength = loadPartLength;
Expand Down

0 comments on commit 4e67e7e

Please sign in to comment.