mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-30 12:00:52 +12:00
Added try catch when initially loading theme
This commit is contained in:
parent
9f0e7eb18c
commit
9cb7935ce4
|
@ -61,7 +61,14 @@ namespace ModAssistant
|
|||
}
|
||||
|
||||
Themes.LoadThemes();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue