mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Match hosted formatting in the Tool Presets preference helper
This commit is contained in:
1 parent
609d953ea7
commit
f69aa93741
1 file changed
+1
-7
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user