Contextual Task Bar: docs and test comment say a null visible toggles

The opening sentence of the window.taskBar.actions entry in docs/mcp.md
now says the action toggles when visible is omitted or null, as the
params text does. The comment above bar_actions_refuse_bad_params now
says a visible that is not true, false or null is an error.
This commit is contained in:
dotCooCoo committed 2026-11-19 05:38:54 -08:00
1 parent e16d59661c
commit 537d8ce10b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1674,8 +1674,8 @@ fn bar_action_ids_are_distinct() {
assert_eq!(runs.len(), canvas::TASK_BAR_ACTIONS.len());
}
/// An action the bar does not have, a missing one, or a `visible` that is not true or false is an
/// error and changes nothing.
/// An action the bar does not have, a missing one, or a `visible` that is not true, false or null is
/// an error and changes nothing.
#[test]
fn bar_actions_refuse_bad_params() {
let mut app = app();
+1 -1
View File
@@ -8177,7 +8177,7 @@ and a group id the bar does not have is dropped when they are read. Another `gro
be one of …", and a `visible` that is not true or false fails with "`visible` must be true or false"; either leaves
every group as it is. The groups and their contents are VectorCraft's own.
`window.taskBar.actions {action, visible?}` (desktop app) turns one of the Contextual Task Bar's actions or chips on
(`visible: true`), off (`false`) or toggles it (omitted), and returns `{action, visible}`. The actions are `imageTrace`,
(`visible: true`), off (`false`) or toggles it (omitted or null), and returns `{action, visible}`. The actions are `imageTrace`,
`cropImage`, `removeBackground`, `removeAnchorPoints`, `join` (Connect and Join), `cutPath`, `convertToCorner`,
`convertToSmooth`, `group`, `makeClippingMask`, `unite`, `expand`, `editClippingPath`, `releaseClippingMask`,
`ungroup`, `isolate`, `editPath`, `releaseCompoundPath`, `createOutlines`, `convertToPointType`, `convertToAreaType`,