[fix] make mobile landscape locking opt-in

This commit is contained in:
dijunkun
2026-10-27 03:55:17 +08:00
parent 0e052e6d7a
commit a9e3178042
12 changed files with 57 additions and 154 deletions
+3 -1
View File
@@ -840,9 +840,11 @@ private struct ServerSettingsView: View {
.pickerStyle(.segmented)
}
Section {
Toggle("连接后自动横屏", isOn: $session.autoLandscape)
Toggle("连接建立后锁定横屏", isOn: $session.autoLandscape)
} header: {
Text("屏幕方向")
} footer: {
Text("默认关闭。开启后,iPhone 连接时进入并保持横屏;关闭时跟随设备方向。iPad 不受影响。")
}
Section {
DisclosureGroup(isExpanded: $serverConfigurationExpanded) {