diff options
author | Vsevolod Kukol <sevoku@xamarin.com> | 2016-05-04 14:26:32 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@xamarin.com> | 2016-05-04 14:26:32 +0300 |
commit | 6e708d69be767aec66d55730529662cf5fbcde06 (patch) | |
tree | 998758c034dc78123ce98e28da23ac30fdafc2f6 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands | |
parent | 4e41c6552dd91b5640cc5b4f2863dd937b71624f (diff) |
[Ide] Remove top separator from Pad selection menu
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs index 5032431ed0..f4a13b65ff 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs @@ -113,9 +113,11 @@ namespace MonoDevelop.Ide.Commands lastListGroup.TryGetValue (list, out group); if (group != pad.Group) { lastListGroup [list] = pad.Group; - CommandInfo sep = new CommandInfo ("-"); - sep.IsArraySeparator = true; - list.Insert (atIndex, sep, null); + if (atIndex > 0) { + CommandInfo sep = new CommandInfo ("-"); + sep.IsArraySeparator = true; + list.Insert (atIndex, sep, null); + } } } } |