test equipping tools mid tool use removes have baked expression (#5403)

test equiping tools mid tool use removes have baked expression
This commit is contained in:
Kurt Hutten
2025-02-19 07:45:44 +11:00
committed by GitHub
parent 71f701dec7
commit f5c9f84ae9
3 changed files with 97 additions and 11 deletions

View File

@ -375,14 +375,7 @@ 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' },
}) ||
state.matches({
Sketch: { 'Circle tool': 'Awaiting Radius' },
}),
disabled: (state) => state.matches('Sketch no face'),
title: 'Line',
hotkey: (state) =>
state.matches({ Sketch: 'Line tool' }) ? ['Esc', 'L'] : 'L',