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:
parent
0671be215f
commit
5d1c56829a
6 changed files with 151 additions and 37 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue