You've already forked joplin
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:
@@ -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