Smart filters: rustfmt

This commit is contained in:
itsF4LCON committed 2026-10-16 00:16:06 +02:00
1 parent 8176b613ca
commit c04da11bb3
1 file changed
+3 -1
+3 -1
View File
@@ -45,7 +45,9 @@ pub(crate) fn window(app: &PhotocraftApp, dialog: u64, ui: &mut egui::Ui, f: &mu
let filtered: Option<(FilterPreviewKey, std::sync::Arc<Document>)> = app.filter_preview.as_ref().and_then(|p| {
// An edited smart filter previews as `layer.smartFilter.setParams` (#6324).
let previewed = crate::smart_ui::preview_command(f, &cmd);
(preview_on && p.key.dialog == dialog && p.key.doc == doc_id && p.key.command == previewed).then(|| p.result.clone().map(|r| (p.key.clone(), r))).flatten()
(preview_on && p.key.dialog == dialog && p.key.doc == doc_id && p.key.command == previewed)
.then(|| p.result.clone().map(|r| (p.key.clone(), r)))
.flatten()
});
// The proxy factor the preview runs at (the filtered key's when it exists, else the request's).
let base_k = filtered.as_ref().map(|(k, _)| k.k).unwrap_or_else(|| {