You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Mobile: Camera screen: Support scanning QR codes (#11245)
This commit is contained in:
@ -14,6 +14,11 @@ const customCssFilePath = (Setting: typeof SettingType, filename: string): strin
|
||||
return `${Setting.value('rootProfileDir')}/${filename}`;
|
||||
};
|
||||
|
||||
export enum CameraDirection {
|
||||
Back,
|
||||
Front,
|
||||
}
|
||||
|
||||
const builtInMetadata = (Setting: typeof SettingType) => {
|
||||
const platform = shim.platformName();
|
||||
const mobilePlatform = shim.mobilePlatform();
|
||||
@ -1436,7 +1441,7 @@ const builtInMetadata = (Setting: typeof SettingType) => {
|
||||
'welcome.wasBuilt': { value: false, type: SettingItemType.Bool, public: false },
|
||||
'welcome.enabled': { value: true, type: SettingItemType.Bool, public: false },
|
||||
|
||||
'camera.type': { value: 0, type: SettingItemType.Int, public: false, appTypes: [AppType.Mobile] },
|
||||
'camera.type': { value: CameraDirection.Back, type: SettingItemType.Int, public: false, appTypes: [AppType.Mobile] },
|
||||
'camera.ratio': { value: '4:3', type: SettingItemType.String, public: false, appTypes: [AppType.Mobile] },
|
||||
|
||||
'spellChecker.enabled': { value: true, type: SettingItemType.Bool, isGlobal: true, storage: SettingStorage.File, public: false },
|
||||
|
Reference in New Issue
Block a user