diff --git a/crates/ui-egui/src/panels/preset_panels.rs b/crates/ui-egui/src/panels/preset_panels.rs index 957afb08fbc..6ea75072e9b 100644 --- a/crates/ui-egui/src/panels/preset_panels.rs +++ b/crates/ui-egui/src/panels/preset_panels.rs @@ -119,13 +119,7 @@ const TOOL_PRESETS_SECTION: &str = "photocraft.tool-presets"; /// Tool Presets starts filtered unless the user has explicitly changed it. pub(super) fn current_tool_only(app: &PhotocraftApp) -> bool { - app.session - .prefs() - .sections - .get(TOOL_PRESETS_SECTION) - .and_then(|section| section.get("currentToolOnly")) - .and_then(Value::as_bool) - .unwrap_or(true) + app.session.prefs().sections.get(TOOL_PRESETS_SECTION).and_then(|section| section.get("currentToolOnly")).and_then(Value::as_bool).unwrap_or(true) } /// Save a changed filter and invalidate the dock body that reads it.