Skip to content

Commit ab86b95

Browse files
committed
Desktop, Mobile, Cli: Add setting migration for ocr.enabled
1 parent 0f07c0f commit ab86b95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/lib/models/Setting.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ interface SettingSections {
9191

9292
interface DefaultMigration {
9393
name: string;
94-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
95-
previousDefault: any;
94+
previousDefault: string | boolean | number;
9695
}
9796

9897
// To create a default migration:
@@ -117,6 +116,10 @@ const defaultMigrations: DefaultMigration[] = [
117116
name: 'themeAutoDetect',
118117
previousDefault: false,
119118
},
119+
{
120+
name: 'ocr.enabled',
121+
previousDefault: false,
122+
},
120123
];
121124

122125
// "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way

0 commit comments

Comments
 (0)