Skip to content

Commit

Permalink
check saved IconOverlay config for null, fix a typo in readme that le…
Browse files Browse the repository at this point in the history
…ft table tag open
  • Loading branch information
DineshSolanki committed Sep 3, 2024
1 parent dcca071 commit 2591973
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions FoliCon/Models/Constants/GlobalVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public static IconOverlay IconOverlayType()

public const string MediaInfoFile = "info.folicon";

private static string IconOverlayTypeString =>
Services.Tracker.Store.GetData("PosterIconConfigViewModel")?["p.IconOverlay"]?.ToString() ?? IconOverlay.Liaher.ToString();
private static string IconOverlayTypeString
{
get
{
var data = Services.Tracker.Store.GetData("PosterIconConfigViewModel");
return data.TryGetValue("p.IconOverlay", out var value) ? value.ToString() : IconOverlay.Liaher.ToString();
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ Thank you to the following individuals who have provided invaluable inputs throu
<td align="center"><a href="https://github.com/MasoudRahmani"><img src="https://github.com/MasoudRahmani.png?size=50" alt="MasoudRahmani" /><br /><sub><b>@MasoudRahmani</b></sub></a></td>
<td align="center"><a href="PoetaGA"><img src="https://github.com/PoetaGA.png?size=50" alt="PoetaGA" /><br /><sub><b>@PoetaGA</b></sub></a></td>
</tr>
<table>
</table>
... and many more who have interacted with us through issues and discussions.

0 comments on commit 2591973

Please sign in to comment.