You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop, Mobile, Cli: Add setting migration for ocr.enabled
This commit is contained in:
@@ -91,8 +91,7 @@ interface SettingSections {
|
|||||||
|
|
||||||
interface DefaultMigration {
|
interface DefaultMigration {
|
||||||
name: string;
|
name: string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
previousDefault: string | boolean | number;
|
||||||
previousDefault: any;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// To create a default migration:
|
// To create a default migration:
|
||||||
@@ -117,6 +116,10 @@ const defaultMigrations: DefaultMigration[] = [
|
|||||||
name: 'themeAutoDetect',
|
name: 'themeAutoDetect',
|
||||||
previousDefault: false,
|
previousDefault: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'ocr.enabled',
|
||||||
|
previousDefault: false,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way
|
// "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way
|
||||||
|
|||||||
Reference in New Issue
Block a user