Use server checkmark rather than selection on macOS

This commit is contained in:
Davide 2024-10-23 19:31:03 +02:00
parent 99b9aeaa9c
commit 8815e6fdf7
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 7 additions and 1 deletions

View File

@ -52,7 +52,13 @@ extension VPNProviderServerView {
private extension VPNProviderServerView.Subview { private extension VPNProviderServerView.Subview {
var tableView: some View { var tableView: some View {
Table(manager.filteredServers, selection: .constant(selectedServer?.id)) { Table(manager.filteredServers) {
TableColumn("") { server in
ThemeImage(.marked)
.opacity(server.id == selectedServer?.id ? 1.0 : 0.0)
}
.width(max: 20.0)
TableColumn(Strings.Global.region) { server in TableColumn(Strings.Global.region) { server in
HStack { HStack {
ThemeCountryFlag(code: server.provider.countryCode) ThemeCountryFlag(code: server.provider.countryCode)