From c77affd954683f233381784230ffdaf4b1ced6ba Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Sat, 23 Oct 2021 22:30:30 -0500 Subject: [PATCH] Set default music directory MBID Locator Mod --- ZuneModCore/Mods/MbidLocatorMod.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ZuneModCore/Mods/MbidLocatorMod.cs b/ZuneModCore/Mods/MbidLocatorMod.cs index 15051ca..b211b71 100644 --- a/ZuneModCore/Mods/MbidLocatorMod.cs +++ b/ZuneModCore/Mods/MbidLocatorMod.cs @@ -31,7 +31,7 @@ namespace ZuneModCore.Mods Title = "Select music folder:", Items = { - new AbstractTextBox("folderBox"), + new AbstractTextBox("folderBox", Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)), new AbstractBooleanUIElement("recursiveBox", "Search recursively") } }; @@ -46,10 +46,6 @@ namespace ZuneModCore.Mods bool recursive = ((AbstractBooleanUIElement)OptionsUI.Items[1]).State; string errorString = string.Empty; - // If the user didn't enter a folder, default to the "My Music" user folder - if (string.IsNullOrEmpty(folderPath)) - folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic); - // Verify that the folder exists DirectoryInfo folder = new(folderPath); if (!folder.Exists)