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.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Settings schema 32 for the new extensions (31 belongs to Live Photo creation)
KnifeLemone321e0e28b9a
diff --git a/src/Filee.Core/Settings/AppSettings.cs b/src/Filee.Core/Settings/AppSettings.csindex d4105e6e..4a70ce01 100644--- a/src/Filee.Core/Settings/AppSettings.cs+++ b/src/Filee.Core/Settings/AppSettings.cs@@ -109,7 +109,7 @@ public sealed class DonutSettingspublic sealed class AppSettings{/// <summary>Current schema version. Increase when the format changes and add a migration.</summary>- public const int CurrentSchemaVersion = 31;+ public const int CurrentSchemaVersion = 32;public int SchemaVersion { get; set; } = CurrentSchemaVersion;diff --git a/src/Filee.Core/Settings/UserDataStore.cs b/src/Filee.Core/Settings/UserDataStore.csindex 1e21c611..b8008277 100644--- a/src/Filee.Core/Settings/UserDataStore.cs+++ b/src/Filee.Core/Settings/UserDataStore.cs@@ -715,8 +715,8 @@ internal static class SettingsMigrations// back. One the user emptied is saved empty and stays so.if (from < 30 || profiles.Any(p => p.BackPresetIds is null))changed |= AddBackFaces(presets, profiles);- // v31: source text, Video CD DAT and Workbench archives learn their donuts; custom claims stay put.- if (from < 31)+ // v32: logs and script source, Video CD DAT and Workbench archives learn their donuts; custom claims stay put.+ if (from < 32)changed |= LearnExtensions(profiles, out _, ["log", "py", "pac", "bat", "command", "dat", "wbpz"]);return changed;}diff --git a/tests/Filee.Core.Tests/UserDataStoreTests.cs b/tests/Filee.Core.Tests/UserDataStoreTests.csindex 9d93dd9c..c0d75309 100644--- a/tests/Filee.Core.Tests/UserDataStoreTests.cs+++ b/tests/Filee.Core.Tests/UserDataStoreTests.cs@@ -7,12 +7,12 @@ namespace Filee.Core.Tests;public class UserDataStoreTests{[Fact]- public void Version_30_learns_reported_text_and_video_extensions_without_taking_custom_claims()+ public void Version_31_learns_text_video_cd_and_workbench_extensions_without_taking_custom_claims(){using var dir = new TempDir();var store = new UserDataStore(dir.Path);store.Load();- store.Settings.SchemaVersion = 30;+ store.Settings.SchemaVersion = 31;foreach (var profile in store.Profiles)profile.Extensions.RemoveAll(e => e is "log" or "py" or "pac" or "bat" or "command" or "dat" or "wbpz");store.Profiles.Insert(0, new ToolbarProfile { Id = "my-python", Name = "My code", Extensions = ["py"] });