fix clear workspace when not in arrange mode

This commit is contained in:
Stewart Allen 2021-02-28 22:24:57 -05:00
commit 520f3ac35e

View file

@ -2518,7 +2518,11 @@
// context menu
$('context-export-stl').onclick = () => { objectsExport() };
$('context-export-workspace').onclick = () => { profileExport(true) };
$('context-clear-workspace').onclick = () => { API.platform.clear(); UI.context.onmouseleave() };
$('context-clear-workspace').onclick = () => {
API.view.set(VIEWS.ARRANGE);
API.platform.clear();
UI.context.onmouseleave();
};
$('context-duplicate').onclick = duplicateSelection;
$('context-mirror').onclick = mirrorSelection;
$('context-layflat').onclick = layFlat;