Add staged checkboxes to multibuffer headers (#24308)

Co-authored-by: Mikayla <mikayla@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2025-02-05 18:32:07 -07:00 committed by GitHub
parent 0671be215f
commit 5d1c56829a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 151 additions and 37 deletions

View file

@ -58,12 +58,12 @@ impl From<bool> for ToggleState {
}
}
// impl From<Option<bool>> for ToggleState {
// fn from(selected: Option<bool>) -> Self {
// match selected {
// Some(true) => Self::Selected,
// Some(false) => Self::Unselected,
// None => Self::Unselected,
// }
// }
// }
impl From<Option<bool>> for ToggleState {
fn from(selected: Option<bool>) -> Self {
match selected {
Some(true) => Self::Selected,
Some(false) => Self::Unselected,
None => Self::Indeterminate,
}
}
}