mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-10-01 01:26:17 +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.LoadThemes();
|
||||||
|
try
|
||||||
|
{
|
||||||
Themes.ApplyTheme("Light", this);
|
Themes.ApplyTheme("Light", this);
|
||||||
|
}catch (ArgumentException)
|
||||||
|
{
|
||||||
|
Themes.ApplyTheme("Light", this);
|
||||||
|
MainText = "Theme not found, reverting to Light theme...";
|
||||||
|
}
|
||||||
|
|
||||||
List<string> versions;
|
List<string> versions;
|
||||||
string json = string.Empty;
|
string json = string.Empty;
|
||||||
|
|
Loading…
Reference in a new issue