Skip to content

Commit

Permalink
MainV2: handle theme error
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Feb 22, 2016
1 parent b3d4572 commit 9f10cc0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MainV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,16 @@ public MainV2()

if (Settings.Instance["theme"] != null)
{
ThemeManager.SetTheme(
(ThemeManager.Themes) Enum.Parse(typeof (ThemeManager.Themes), Settings.Instance["theme"].ToString()));
try
{
ThemeManager.SetTheme(
(ThemeManager.Themes)
Enum.Parse(typeof (ThemeManager.Themes), Settings.Instance["theme"].ToString()));
}
catch (Exception exception)
{
log.Error(exception);
}

if (ThemeManager.CurrentTheme == ThemeManager.Themes.Custom)
{
Expand Down

0 comments on commit 9f10cc0

Please sign in to comment.