Convert Paste/DuplicateItem to receive sceneContext
- Required to remove ActivePrinter from InsertNewItem - Issue MatterHackers/MCCentral#4549 Remove ActivePrinter from ApplicationController
This commit is contained in:
parent
5489c3b09a
commit
712dadd3a7
3 changed files with 11 additions and 8 deletions
|
|
@ -496,7 +496,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Shortcut = "Ctrl+V",
|
||||
Action = () =>
|
||||
{
|
||||
sceneContext.Scene.Paste();
|
||||
sceneContext.Paste();
|
||||
},
|
||||
IsEnabled = () => Clipboard.Instance.ContainsImage || Clipboard.Instance.GetText() == "!--IObjectSelection--!"
|
||||
}
|
||||
|
|
@ -1767,7 +1767,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Title = "Paste".Localize(),
|
||||
Action = () =>
|
||||
{
|
||||
Scene.Paste();
|
||||
sceneContext.Paste();
|
||||
},
|
||||
IsEnabled = () => Clipboard.Instance.ContainsImage || Clipboard.Instance.GetText() == "!--IObjectSelection--!"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue