Added try catch when initially loading theme

This commit is contained in:
Caeden Statia 2020-02-07 15:41:01 -08:00
parent 9f0e7eb18c
commit 9cb7935ce4

View file

@ -61,7 +61,14 @@ namespace ModAssistant
}
Themes.LoadThemes();
Themes.ApplyTheme("Light", this);
try
{
Themes.ApplyTheme("Light", this);
}catch (ArgumentException)
{
Themes.ApplyTheme("Light", this);
MainText = "Theme not found, reverting to Light theme...";
}
List<string> versions;
string json = string.Empty;