Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Merge remote-tracking branch 'origin/main' into pr218-chk

KnifeLemon71f2eefc9690
diff --cc src/Filee.Core/Settings/UserDataStore.cs
index 96b4e315,c00f21b6..c8bd5fb7
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@@ -632,10 -631,29 +632,33 @@@ internal static class SettingsMigration
// of the user already takes them.
if (from < 24)
changed |= LearnExtensions(profiles, out _, ["potm"]);
+ // v26: interactive "Crop" tool, after "Remove background" as in a new library, on no donut: users add it in
+ // Settings → Toolbar. Present already but saved since by a Filee before 26: that one read the unknown
+ // kind as a Group, dropped the target format and left an empty group. Kind and target format are put back,
+ // the user's own changes (name, file name pattern) stay.
+ if (from < 26)
+ {
+ if (BuiltInData.CreatePresets().FirstOrDefault(p => p.Id == "tool-crop") is { } crop)
+ {
+ if (presets.FirstOrDefault(p => p.Id == "tool-crop") is not { } existing)
+ {
+ var at = presets.FindIndex(p => p.Id == "remove-background");
+ presets.Insert(at < 0 ? presets.Count : at + 1, crop);
+ changed = true;
+ }
+ else if (existing.Kind != PresetKind.Tool)
+ {
+ existing.Kind = PresetKind.Tool;
+ existing.TargetFormat = crop.TargetFormat;
+ existing.SubPresetIds = [];
+ changed = true;
+ }
+ }
+ }
+ // v28: "One ZIP" on the archives donut after "Extract", to pack several archives into one. A donut
+ // the user filled up, or a library without the preset, stays as it is.
+ if (from < 28)
+ changed |= Offer(presets, profiles, "archives", "zip-all", "extract");
return changed;
}