Disable rectangle tool

This commit is contained in:
Jonathan Tran
2024-07-30 13:09:37 -04:00
parent 07a90b3171
commit c44f81aa1e

View File

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