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

This commit is contained in:
David Luzar
2022-02-07 22:30:06 +01:00
committed by GitHub
parent 5007df6522
commit 050bc1ce2b

View File

@ -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,
};