chore: checkpoint current workspace changes

This commit is contained in:
2026-04-11 22:14:02 +08:00
parent 3e55f8c204
commit 8848cfd958
227 changed files with 34027 additions and 6711 deletions

View File

@@ -128,7 +128,19 @@ bool UISelectionModel::ToggleSelection(std::string selectionId) {
return RemoveSelection(selectionId);
}
return AddSelection(std::move(selectionId), true);
return SetSelection(std::move(selectionId));
}
bool UISelectionModel::ToggleSelectionMembership(std::string selectionId, bool makePrimary) {
if (selectionId.empty()) {
return false;
}
if (IsSelected(selectionId)) {
return RemoveSelection(selectionId);
}
return AddSelection(std::move(selectionId), makePrimary);
}
void UISelectionModel::NormalizeSelectionIds(std::vector<std::string>& selectionIds) {