Guides read the ruler drag from the canvas env: drop the preview filter that no longer gates anything

This commit is contained in:
aiongg committed 2026-11-20 01:52:45 +00:00
1 parent ee406d9456
commit c17375b965
1 file changed
+1 -2
+1 -2
View File
@@ -141,9 +141,8 @@ pub(crate) fn show(app: &mut PhotocraftApp, ui: &mut egui::Ui, host: CanvasHost,
(None, None) => (doc.guides.clone(), preference),
};
let visible = app.ui.extras.guides && app.ui.view.shows(app.ui.view.show.canvas_guides);
let pending = ruler.filter(|_| !previewing);
// A guide dragged out of a ruler is placed with the guides hidden, and placing it shows them.
if !visible && !previewing && pending.is_none() {
if !visible && !previewing && ruler.is_none() {
return None;
}
let shown = guides_of(&list, color, guide_line(g.guide_style), app.ui.extras.lock_guides);