forked from Blendman974/faceclaw
Port lock screen to iOS
This commit is contained in:
1 parent
ef7878359f
commit
e2b35ada1a
12 files changed
+273
-46
No files matched your search
@@ -341,7 +341,8 @@ export const lockScreenEnabledSetting = new ConfigSettingBoolean({
|
||||
storageKey: "display.lockScreenEnabled",
|
||||
defaultValue: true,
|
||||
description:
|
||||
"Lock the glasses after they are taken off while the phone is locked. Unlocking the phone unlocks the glasses.",
|
||||
"Lock the glasses after they are taken off while the phone is locked. Unlocking the phone unlocks the glasses." +
|
||||
(global.isIOS ? " On iPhone, this requires a device passcode and follows iOS data-protection notifications, which may be delayed after the screen locks." : ""),
|
||||
});
|
||||
|
||||
// Phone display: the phone app's mirror of the glasses screen and the
|
||||
|
||||
@@ -254,7 +254,7 @@ function settingsSections(): SettingsSection[] {
|
||||
description: `${section.label} integration has not been ported to iOS.`,
|
||||
}] };
|
||||
if (section.label === "Display") return { ...section, items: section.items.filter(item =>
|
||||
![brightnessSetting.label, screenTimeoutSetting.label, lockScreenEnabledSetting.label].includes(item.label)) };
|
||||
![brightnessSetting.label, screenTimeoutSetting.label].includes(item.label)) };
|
||||
if (section.label === "Phone display") return { ...section, items: section.items.filter(item => item.label !== mirrorTouchSetting.label) };
|
||||
return section;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user