Compare commits

...

1 Commits

Author SHA1 Message Date
c44f81aa1e Disable rectangle tool 2024-07-30 13:10:12 -04:00

View File

@ -290,10 +290,8 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
}, },
}), }),
icon: 'line', icon: 'line',
status: 'available', status: 'unavailable',
disabled: (state) => disabled: (state) => true,
state.matches('Sketch no face') ||
state.matches('Sketch.Rectangle tool.Awaiting second corner'),
title: 'Line', title: 'Line',
hotkey: (state) => hotkey: (state) =>
state.matches('Sketch.Line tool') ? ['Esc', 'L'] : 'L', state.matches('Sketch.Line tool') ? ['Esc', 'L'] : 'L',