feat: hide proxy names

This commit is contained in:
mrFq1
2023-05-16 15:24:56 +08:00
parent adcfb183f9
commit 8e9bf8c6cc
4 changed files with 37 additions and 4 deletions
@@ -11,6 +11,8 @@ struct ProxyGroupView: View {
@ObservedObject var proxyGroup: DBProxyGroup
@EnvironmentObject var searchString: ProxiesSearchString
@EnvironmentObject var hideProxyNames: HideProxyNames
@State private var columnCount: Int = 3
@State private var isUpdatingSelect = false
@State private var selectable = false
@@ -56,7 +58,9 @@ struct ProxyGroupView: View {
var proxyInfoView: some View {
HStack() {
Text(proxyGroup.name)
Text(hideProxyNames.hide
? String(proxyGroup.id.prefix(8))
: proxyGroup.name)
.font(.system(size: 17))
Text(proxyGroup.type.rawValue)
.font(.system(size: 13))