Port lock screen to iOS

This commit is contained in:
James Babcock committed 2026-09-19 02:55:13 -07:00
1 parent ef7878359f
commit e2b35ada1a
12 files changed
+273 -46

No files matched your search

+2 -1
View File
@@ -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
+1 -1
View File
@@ -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;
});