Advanced settings: make number fields .numPad

This commit is contained in:
Toni Förster 2024-05-09 15:02:31 +02:00
parent d1cf45c6a1
commit 2590f041c2
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -73,7 +73,7 @@ struct AdvancedSettings: View {
.frame(minWidth: 140, alignment: .leading)
TextField("cache-secs", text: $mpvCacheSecs)
#if !os(macOS)
.keyboardType(.URL)
.keyboardType(.numberPad)
#endif
}
.multilineTextAlignment(.trailing)
@ -83,7 +83,7 @@ struct AdvancedSettings: View {
.frame(minWidth: 140, alignment: .leading)
TextField("cache-pause-wait", text: $mpvCachePauseWait)
#if !os(macOS)
.keyboardType(.URL)
.keyboardType(.numberPad)
#endif
}
.multilineTextAlignment(.trailing)