Skip to content

Commit c77affd

Browse files
committed
Set default music directory MBID Locator Mod
1 parent aaf8a8d commit c77affd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ZuneModCore/Mods/MbidLocatorMod.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class MbidLocatorMod : Mod
3131
Title = "Select music folder:",
3232
Items =
3333
{
34-
new AbstractTextBox("folderBox"),
34+
new AbstractTextBox("folderBox", Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)),
3535
new AbstractBooleanUIElement("recursiveBox", "Search recursively")
3636
}
3737
};
@@ -46,10 +46,6 @@ public class MbidLocatorMod : Mod
4646
bool recursive = ((AbstractBooleanUIElement)OptionsUI.Items[1]).State;
4747
string errorString = string.Empty;
4848

49-
// If the user didn't enter a folder, default to the "My Music" user folder
50-
if (string.IsNullOrEmpty(folderPath))
51-
folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
52-
5349
// Verify that the folder exists
5450
DirectoryInfo folder = new(folderPath);
5551
if (!folder.Exists)

0 commit comments

Comments
 (0)