mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-28 03:59:07 +00:00
Desktop, Mobile, Cli: Add setting migration for ocr.enabled
This commit is contained in:
1 parent
0f07c0f53a
commit
ab86b95fad
1 file changed
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user