mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-29 16:51:09 +13:00
Added try catch when initially loading theme
This commit is contained in:
parent
9f0e7eb18c
commit
9cb7935ce4
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue