chore: checkpoint current workspace changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user