Skip to content

Commit

Permalink
home: disable ability to type VM name with multiple lines
Browse files Browse the repository at this point in the history
Fixes #5627
  • Loading branch information
osy committed Sep 2, 2023
1 parent 5c171e8 commit e269ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Platform/Shared/VMConfigInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ struct VMConfigInfoView: View {
private var nameField: some View {
TextField("Name", text: $config.name)
.keyboardType(.asciiCapable)
.lineLimit(1)
}

private var notesField: some View {
Expand Down
1 change: 1 addition & 0 deletions Platform/Shared/VMWizardSummaryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ struct VMWizardSummaryView: View {
var info: some View {
Group {
TextField("Name", text: $wizardState.name.bound)
.lineLimit(1)
#if os(macOS)
Toggle("Open VM Settings", isOn: $wizardState.isOpenSettingsAfterCreation)
.disabled(wizardState.isPendingIPSWDownload)
Expand Down

0 comments on commit e269ade

Please sign in to comment.