diff options
author | mhutch <m.j.hutchinson@gmail.com> | 2016-03-18 21:04:44 +0300 |
---|---|---|
committer | mhutch <m.j.hutchinson@gmail.com> | 2016-03-18 21:04:44 +0300 |
commit | 60fe3276e27c537e02d87faa97cdc090d724c212 (patch) | |
tree | bb7cd6ba84d9592f293d725b688b2f5bd8076a6f /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs | |
parent | c4c3139a3c350cd8a320ccf2bb941b9f67c68715 (diff) |
Revert "Added support for different architectures of MonoRuntime so user can pick 32bit or 64bit version to start debugging"
This reverts commit db0fa9870df5245b4d7189e3ee36157e68a30572.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs index 511320179f..fd70f5f9b0 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs @@ -122,13 +122,13 @@ namespace MonoDevelop.Ide.Gui.OptionPanels return Environment.GetFolderPath (IntPtr.Size == 8? Environment.SpecialFolder.ProgramFilesX86 : Environment.SpecialFolder.ProgramFiles); } - + protected virtual void OnButtonAddClicked (object sender, System.EventArgs e) { var dlg = new SelectFolderDialog (GettextCatalog.GetString ("Select the mono installation prefix")) { TransientFor = this.Toplevel as Gtk.Window, }; - + //set a platform-dependent default folder for the dialog if possible if (Platform.IsWindows) { // ProgramFilesX86 is broken on 32-bit WinXP @@ -139,32 +139,17 @@ namespace MonoDevelop.Ide.Gui.OptionPanels if (System.IO.Directory.Exists ("/usr")) dlg.CurrentFolder = "/usr"; } - + if (!dlg.Run ()) return; - - var rinfo64 = new MonoRuntimeInfo (dlg.SelectedFile, true); - var rinfo32 = new MonoRuntimeInfo (dlg.SelectedFile, false); - if (rinfo64.IsValidRuntime && rinfo32.IsValidRuntime) { - newInfos.Add (rinfo64); - store.AppendValues (rinfo64.DisplayName, rinfo64); - newInfos.Add (rinfo32); - store.AppendValues (rinfo32.DisplayName, rinfo32); - } else if (rinfo64.IsValidRuntime) { - newInfos.Add (rinfo64); - store.AppendValues (rinfo64.DisplayName, rinfo64); - } else if (rinfo32.IsValidRuntime) { - newInfos.Add (rinfo32); - store.AppendValues (rinfo32.DisplayName, rinfo32); - } else { - var rinfo = new MonoRuntimeInfo (dlg.SelectedFile, null); - if (rinfo.IsValidRuntime) { - newInfos.Add (rinfo); - store.AppendValues (rinfo.DisplayName, rinfo); - } else { - MessageService.ShowError (GettextCatalog.GetString ("Mono runtime not found"), GettextCatalog.GetString ("Please provide a valid directory prefix where mono is installed (for example, /usr)")); - } + + var rinfo = new MonoRuntimeInfo (dlg.SelectedFile); + if (!rinfo.IsValidRuntime) { + MessageService.ShowError (GettextCatalog.GetString ("Mono runtime not found"), GettextCatalog.GetString ("Please provide a valid directory prefix where mono is installed (for example, /usr)")); + return; } + newInfos.Add (rinfo); + store.AppendValues (rinfo.DisplayName, rinfo); } protected virtual void OnButtonRemoveClicked (object sender, System.EventArgs e) |