1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop, Mobile, Cli: Add setting migration for ocr.enabled

This commit is contained in:
Laurent Cozic
2025-03-07 15:47:44 +00:00
parent 0f07c0f53a
commit ab86b95fad

View File

@@ -91,8 +91,7 @@ interface SettingSections {
interface DefaultMigration {
name: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
previousDefault: any;
previousDefault: string | boolean | number;
}
// To create a default migration:
@@ -117,6 +116,10 @@ const defaultMigrations: DefaultMigration[] = [
name: 'themeAutoDetect',
previousDefault: false,
},
{
name: 'ocr.enabled',
previousDefault: false,
},
];
// "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way