mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-11 04:52:13 +00:00
keymap: compile Keymap::twins_in only with the ui feature, its one user
This commit is contained in:
1 parent
0ccb6a9304
commit
fe4a4450f7
1 file changed
+1
@@ -787,6 +787,7 @@ impl Keymap {
|
||||
|
||||
/// Whether both commands of `conflict` have its chord among their defaults, so they share it by
|
||||
/// design and [`Keymap::clashing`] leaves them out.
|
||||
#[cfg(feature = "ui")]
|
||||
pub(crate) fn twins_in(&self, conflict: &Conflict) -> bool {
|
||||
let (Some(i), Some(j)) = (self.find(&conflict.a.0), self.find(&conflict.b.0)) else { return false };
|
||||
self.twins(i, j, conflict.chord)
|
||||
|
||||
Reference in new issue
Block a user