Hide connections page by default since unstable

This commit is contained in:
世界
2024-10-06 21:41:14 +08:00
parent 0a456131ea
commit 5e2af0a5c7
10 changed files with 27 additions and 22 deletions
@@ -51,7 +51,7 @@ public struct ActiveDashboardView: View {
#if os(iOS) || os(tvOS)
if ApplicationLibrary.inPreview || profile.status.isConnectedStrict {
Picker("Page", selection: $selection) {
ForEach(DashboardPage.allCases) { page in
ForEach(DashboardPage.enabledCases()) { page in
page.label
}
}
@@ -61,7 +61,7 @@ public struct ActiveDashboardView: View {
.navigationBarTitleDisplayMode(.inline)
#endif
TabView(selection: $selection) {
ForEach(DashboardPage.enabledCases) { page in
ForEach(DashboardPage.enabledCases()) { page in
page.contentView($profileList, $selectedProfileID, $systemProxyAvailable, $systemProxyEnabled)
.tag(page)
}