mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed editor "DrawableContainer" context-menu translations.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1827 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
9596ecbec4
commit
cfb370a697
4 changed files with 17 additions and 15 deletions
|
@ -459,7 +459,7 @@ namespace Greenshot.Drawing {
|
|||
}
|
||||
}
|
||||
if (canReset) {
|
||||
item = new ToolStripMenuItem("Reset size");
|
||||
item = new ToolStripMenuItem(Language.GetString(LangKey.editor_resetsize));
|
||||
//item.Image = ((System.Drawing.Image)(editorFormResources.GetObject("removeObjectToolStripMenuItem.Image")));
|
||||
item.Click += delegate {
|
||||
foreach (DrawableContainer container in this) {
|
||||
|
@ -478,20 +478,18 @@ namespace Greenshot.Drawing {
|
|||
}
|
||||
|
||||
public virtual void ShowContextMenu(MouseEventArgs e, Surface surface) {
|
||||
if (conf.isExperimentalFeatureEnabled("Contextmenu")) {
|
||||
bool hasMenu = false;
|
||||
foreach (DrawableContainer container in this) {
|
||||
if (container.hasContextMenu) {
|
||||
hasMenu = true;
|
||||
break;
|
||||
}
|
||||
bool hasMenu = false;
|
||||
foreach (DrawableContainer container in this) {
|
||||
if (container.hasContextMenu) {
|
||||
hasMenu = true;
|
||||
break;
|
||||
}
|
||||
if (hasMenu) {
|
||||
ContextMenuStrip menu = new ContextMenuStrip();
|
||||
AddContextMenuItems(menu, surface);
|
||||
if (menu.Items.Count > 0) {
|
||||
menu.Show(surface, e.Location);
|
||||
}
|
||||
}
|
||||
if (hasMenu) {
|
||||
ContextMenuStrip menu = new ContextMenuStrip();
|
||||
AddContextMenuItems(menu, surface);
|
||||
if (menu.Items.Count > 0) {
|
||||
menu.Show(surface, e.Location);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue