mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
ui-contract: CommandState::is_checked reads the checked state the app set
This commit is contained in:
@@ -297,6 +297,11 @@ impl CommandState {
|
||||
self.flags.enabled
|
||||
}
|
||||
|
||||
/// The checked state [`checked`](Self::checked) set; `None` for a command that is not a toggle or radio.
|
||||
pub fn is_checked(&self) -> Option<bool> {
|
||||
self.flags.checked
|
||||
}
|
||||
|
||||
pub(crate) fn is_marked(&self) -> bool {
|
||||
self.marked
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user