From 8815e6fdf706b0f6e5ff557f6b751b20a6d56cb4 Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 23 Oct 2024 19:31:03 +0200 Subject: [PATCH] Use server checkmark rather than selection on macOS --- .../Provider/macOS/VPNProviderServerView+macOS.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift b/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift index 938889e0..6ce6633a 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift @@ -52,7 +52,13 @@ extension VPNProviderServerView { private extension VPNProviderServerView.Subview { 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 HStack { ThemeCountryFlag(code: server.provider.countryCode)