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
Renumber #432's migration to 35; no new strings
KnifeLemon08499ba2ae8c
diff --git a/src/Filee.Core/Settings/AppSettings.cs b/src/Filee.Core/Settings/AppSettings.csindex 508c929c..21f65e98 100644--- a/src/Filee.Core/Settings/AppSettings.cs+++ b/src/Filee.Core/Settings/AppSettings.cs@@ -112,7 +112,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 = 34;+ public const int CurrentSchemaVersion = 35;public int SchemaVersion { get; set; } = CurrentSchemaVersion;diff --git a/src/Filee.Core/Settings/UserDataStore.cs b/src/Filee.Core/Settings/UserDataStore.csindex a52da8f6..25d2b604 100644--- a/src/Filee.Core/Settings/UserDataStore.cs+++ b/src/Filee.Core/Settings/UserDataStore.cs@@ -775,8 +775,8 @@ internal static class SettingsMigrations// v34: Lua scripts and CSS style sheets learn the text donut; custom claims stay put.if (from < 34)changed |= LearnExtensions(profiles, out _, ["lua", "css"]);- // v33: HP-GL plot files learn their donut; custom claims stay put.- if (from < 33)+ // v35: HP-GL plot files learn their donut; custom claims stay put.+ if (from < 35)changed |= LearnExtensions(profiles, out _, ["plt", "hpgl", "hpg", "hgl"]);return changed;}diff --git a/tests/Filee.Core.Tests/PltFormatTests.cs b/tests/Filee.Core.Tests/PltFormatTests.csindex 13601c2d..28061dab 100644--- a/tests/Filee.Core.Tests/PltFormatTests.cs+++ b/tests/Filee.Core.Tests/PltFormatTests.cs@@ -18,14 +18,14 @@ public class PltFormatTests}[Fact]- public void Version_32_vector_donuts_learn_them()+ public void Version_34_vector_donuts_learn_them(){var presets = BuiltInData.CreatePresets();var profiles = BuiltInData.CreateProfiles();foreach (var profile in profiles)profile.Extensions.RemoveAll(e => e is "plt" or "hpgl" or "hpg" or "hgl");- Assert.True(SettingsMigrations.ApplyToLibrary(32, presets, profiles));+ Assert.True(SettingsMigrations.ApplyToLibrary(34, presets, profiles));Assert.Contains("plt", profiles.Single(p => p.Id == "vector").Extensions);}