Reformat code

This commit is contained in:
世界 committed 2026-02-08 18:23:42 +08:00
1 parent f765bf1e3b
commit a86dfc26d1
42 files changed
+163 -98

No files matched your search

@@ -7,7 +7,9 @@ private enum OnDemandMode: String, CaseIterable, Identifiable {
case alwaysOn
case enabled
var id: String { rawValue }
var id: String {
rawValue
}
var name: String {
switch self {
@@ -114,7 +116,6 @@ public struct OnDemandRulesView: View {
}
}
@ViewBuilder
private var rulesSection: some View {
Section {
if rules.isEmpty {
@@ -463,7 +464,6 @@ private struct OnDemandRuleEditView: View {
#endif
}
@ViewBuilder
private var connectionRulesSection: some View {
Section {
if rule.connectionRules.isEmpty {
@@ -128,7 +128,6 @@ public struct SettingView: View {
#if os(macOS)
@MainActor
@ViewBuilder
private static func destinationView(for page: SettingsPage) -> some View {
Group {
switch page {