mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
After the "start aggregation with this as default" button went away, the aggregation preview showed the default-after-switch but had no control to change it; the default could only be picked in the confirm dialog. Once in aggregation mode it was an icon-only star next to remove. Move "set as default" to the top of each card's more menu on the aggregation tab, in both states, and leave add / remove as the only row actions: - In aggregation mode it takes effect at once, also for providers not added yet (the backend adds the new default to the list). - In direct mode it only records the choice through set_proxy_route; the card moves to the default section and the confirm dialog preselects it. - While routing it is listed but disabled with the reason: the default and the route target are one pointer, so changing it would switch the live route from a preview. On Codex, when the default is an official account and the target is a third-party provider, the item says the official subscription's models won't be part of the aggregation. That was previously a silent side effect of changing the default. Mode-specific menu items come from the presentation builder (CardPresentation.menuItems), like the row buttons.