mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:22:39 +00:00
Guides story: is_some_and for the rulers' click
This commit is contained in:
@@ -67,7 +67,7 @@ fn guide_dragged_out_of_a_ruler(ui: &mut Ui, data: &mut StoryData) -> StoryOutpu
|
||||
});
|
||||
let mut output: StoryOutput = shown.inner.map(Into::into).unwrap_or_default();
|
||||
// A click on a strip is the rulers' to report.
|
||||
output.clicked |= shown.output.rulers.map_or(false, |rulers| StoryOutput::from(rulers).clicked);
|
||||
output.clicked |= shown.output.rulers.is_some_and(|rulers| StoryOutput::from(rulers).clicked);
|
||||
output
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user