feat: keep selected tool on canvas reset (#4728)

pull/4723/head
David Luzar 3 years ago committed by GitHub
parent 5007df6522
commit 050bc1ce2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,6 +65,8 @@ export const actionClearCanvas = register({
gridSize: appState.gridSize,
showStats: appState.showStats,
pasteDialog: appState.pasteDialog,
elementType:
appState.elementType === "image" ? "selection" : appState.elementType,
},
commitToHistory: true,
};

Loading…
Cancel
Save