fix(toolbar): add workbench-level fallback contexts (#230) #235
Reference in New Issue
Block a user
Delete Branch "fix/workbench-toolbar-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #230
PartDesign, Sketcher, and Assembly toolbars use
DefaultVisibility::Unavailableand rely onEditingContextResolverto callForceAvailable. When switching to these workbenches without a specific editing state (e.g. PartDesign with no Body activated), no context matches between priority 30 and theempty_documentfallback at priority 10, so all workbench toolbars stay hidden.Adds three workbench-level fallback contexts at priority 20 that match based on
WorkbenchManager::instance()->activeName():partdesign.workbenchsketcher.workbenchassembly.workbenchNo additional signal wiring needed —
signalActivateWorkbenchalready triggersrefresh().