mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-26 07:14:33 +08:00
[feat] add configurable landscape entry for mobile sessions
This commit is contained in:
@@ -75,7 +75,7 @@ struct ContentView: View {
|
||||
}
|
||||
.onAppear {
|
||||
if !session.sessionVisible {
|
||||
AppOrientation.update(to: .portrait)
|
||||
AppOrientation.endSession()
|
||||
}
|
||||
if scenePhase == .active {
|
||||
session.applicationDidBecomeActive()
|
||||
@@ -840,6 +840,11 @@ private struct ServerSettingsView: View {
|
||||
}
|
||||
.pickerStyle(.segmented)
|
||||
}
|
||||
Section {
|
||||
Toggle("连接后自动横屏", isOn: $session.autoLandscape)
|
||||
} header: {
|
||||
Text("屏幕方向")
|
||||
}
|
||||
Section {
|
||||
DisclosureGroup(isExpanded: $serverConfigurationExpanded) {
|
||||
Toggle("使用自定义服务器", isOn: $usesCustomServer)
|
||||
|
||||
Reference in New Issue
Block a user