From d0c49dc5664c8ef18fab18ed5cb4d14c3ce95760 Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 14 Aug 2012 12:48:30 +0000 Subject: [PATCH] Cleanup of logic, had duplicate code. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1987 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/PluginUtils.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/GreenshotPlugin/Core/PluginUtils.cs b/GreenshotPlugin/Core/PluginUtils.cs index ff9f93db4..4898f5ece 100644 --- a/GreenshotPlugin/Core/PluginUtils.cs +++ b/GreenshotPlugin/Core/PluginUtils.cs @@ -107,12 +107,9 @@ namespace GreenshotPlugin.Core { ToolStripSeparator separator = new ToolStripSeparator(); separator.Size = new Size(305, 6); contextMenu.Items.Insert(i, separator); - contextMenu.Items.Insert(i+1, item); - addedItem = true; - } else { - contextMenu.Items.Insert(i+1, item); - addedItem = true; } + contextMenu.Items.Insert(i + 1, item); + addedItem = true; break; } }