Skip to content

Commit

Permalink
display(iOS): support serial output on external display
Browse files Browse the repository at this point in the history
Resolves #6594
  • Loading branch information
osy committed Aug 23, 2024
1 parent 6bb5b20 commit 6feeff5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Platform/iOS/VMToolbarDisplayMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ struct VMToolbarDisplayMenuView: View {
Picker("", selection: externalWindowBinding.device) {
MenuLabel("None", systemImage: "rectangle.dashed").tag(nil as VMWindowState.Device?)
ForEach(session.devices) { device in
if case .display(_, let index) = device {
switch device {
case .serial(_, let index):
MenuLabel("Serial \(index): \(session.qemuConfig.serials[index].target.prettyValue)", systemImage: "rectangle.connected.to.line.below").tag(device as VMWindowState.Device?)
case .display(_, let index):
MenuLabel("Display \(index): \(session.qemuConfig.displays[index].hardware.prettyValue)", systemImage: "display").tag(device as VMWindowState.Device?)
}
}
Expand Down

0 comments on commit 6feeff5

Please sign in to comment.