mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 10:42:32 +00:00
fwb2-fix: CommandState::is_enabled
This commit is contained in:
@@ -213,6 +213,11 @@ impl CommandState {
|
||||
self
|
||||
}
|
||||
|
||||
/// Whether the command can fire, as [`enabled`](Self::enabled) set it.
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
self.flags.enabled
|
||||
}
|
||||
|
||||
pub(crate) fn is_marked(&self) -> bool {
|
||||
self.marked
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user