Fix FolderBrowserDialog's under mono

Mono doesnt work well with RootFolder of DesktopDirectory,
you end up being stuck in ~/Desktop/.  Instead when being
run under mono use MyComputer, which dumps you to /
This commit is contained in:
Jim Westfall
2014-12-07 10:01:27 -08:00
parent b54610c2f6
commit 39e4a6114f
3 changed files with 3 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ namespace ROMVault2
{
ShowNewFolderButton = true,
Description = Resources.FrmSetDir_BtnSetRomLocationClick_Please_select_a_folder_for_This_Rom_Set,
RootFolder = Environment.SpecialFolder.DesktopDirectory,
RootFolder = (Settings.IsMono ? Environment.SpecialFolder.MyComputer : Environment.SpecialFolder.DesktopDirectory),
SelectedPath = DBHelper.GetRealPath(_datLocation)
};
if (browse.ShowDialog() == DialogResult.OK)

View File

@@ -88,7 +88,7 @@ namespace ROMVault2
{
ShowNewFolderButton = true,
Description = Resources.FrmSettings_BtnDatClick_Please_select_a_folder_for_DAT_Root,
RootFolder = Environment.SpecialFolder.DesktopDirectory,
RootFolder = (Settings.IsMono ? Environment.SpecialFolder.MyComputer : Environment.SpecialFolder.DesktopDirectory),
SelectedPath = Settings.DatRoot
};

View File

@@ -40,7 +40,7 @@ namespace ROMVault2
{
ShowNewFolderButton = true,
Description = @"Please select a folder for Dats",
RootFolder = Environment.SpecialFolder.DesktopDirectory,
RootFolder = (Settings.IsMono ? Environment.SpecialFolder.MyComputer : Environment.SpecialFolder.DesktopDirectory),
SelectedPath = @"apps"
};