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:
John Lewin 2018-11-11 08:51:16 -08:00
parent 5489c3b09a
commit 712dadd3a7
3 changed files with 11 additions and 8 deletions

View file

@ -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--!"
},