mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-01 18:20:12 +12:00
Allow for periods in theme filenames
This commit is contained in:
parent
5b009adab3
commit
d85b887cf6
|
@ -37,8 +37,8 @@ namespace ModAssistant
|
|||
foreach (string file in Directory.EnumerateFiles(ThemeDirectory))
|
||||
{
|
||||
FileInfo info = new FileInfo(file);
|
||||
//FileInfo includes the extension in its Name field, so we have to split the string and select only the actual name.
|
||||
string name = info.Name.Split('.').First();
|
||||
//FileInfo includes the extension in its Name field, so we have to select only the actual name.
|
||||
string name = Path.GetFileNameWithoutExtension(info.Name);
|
||||
//Ignore Themes without the xaml extension and ignore themes with the same names as others.
|
||||
//If requests are made I can instead make a Theme class that splits the pre-installed themes from
|
||||
//user-made ones so that one more user-made Light/Dark theme can be added.
|
||||
|
|
Loading…
Reference in a new issue