feat: hide penMode button on reload if not enabled (#4992)

pull/5002/head
David Luzar 3 years ago committed by GitHub
parent 734bb4d2ed
commit 9ba7ca3845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -252,6 +252,10 @@ export const restoreAppState = (
} }
return { return {
...nextAppState, ...nextAppState,
// reset on fresh restore so as to hide the UI button if penMode not active
penDetected:
localAppState?.penDetected ??
(appState.penMode ? appState.penDetected ?? false : false),
activeTool: { activeTool: {
lastActiveToolBeforeEraser: null, lastActiveToolBeforeEraser: null,
locked: nextAppState.activeTool.locked ?? false, locked: nextAppState.activeTool.locked ?? false,

Loading…
Cancel
Save