Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@xamarin.com>2016-04-13 12:02:12 +0300
committerVsevolod Kukol <sevoku@xamarin.com>2016-04-13 12:08:29 +0300
commit761092730d359375ef1455a9426365566902f773 (patch)
treec993f536503edd69d9da1befde94cf4409f90d52 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs
parent8da751a6794fc3e76077aaccfddf2ce61beae3af (diff)
[Ide] Fix Layout menu and handling
Do not allow to delete default "Solution" layout incl. menu mapping Do not allow to create layouts with default layout menu mapping names
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewLayoutDialog.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewLayoutDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewLayoutDialog.cs
index 938bd2991c..bfb46c7055 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewLayoutDialog.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewLayoutDialog.cs
@@ -18,8 +18,11 @@ namespace MonoDevelop.Ide.Gui.Dialogs
public NewLayoutDialog ()
{
Build ();
-
- existingLayouts = IdeApp.Workbench.Layouts;
+
+ existingLayouts = IdeApp.Workbench.Layouts.ToList ();
+ foreach (var mapping in Commands.LayoutListHandler.NameMapping)
+ if (existingLayouts.Contains (mapping.Key))
+ existingLayouts.Add (mapping.Value);
layoutName.Changed += OnNameChanged;
OnNameChanged (layoutName, EventArgs.Empty);