Match hosted formatting in the Tool Presets preference helper

This commit is contained in:
yoriswind committed 2026-12-01 19:28:23 -08:00
1 parent 609d953ea7
commit f69aa93741
1 file changed
+1 -7
+1 -7
View File
@@ -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.