ui-contract: CommandState::is_checked reads the checked state the app set

This commit is contained in:
bflatastic
2026-11-22 08:22:12 +07:00
parent f746bb7dfa
commit 8713c93c6c
@@ -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
}