IfaceScanner: fix some state update issues

This commit is contained in:
mahee96
2026-03-03 04:02:07 +05:30
parent c4139473fa
commit 7c3add0e70
2 changed files with 8 additions and 7 deletions

View File

@@ -28,19 +28,20 @@ struct VPNConfigurationView: View {
Section { Section {
networkConfigRow( networkConfigRow(
label: "Device IP", label: "Device IP",
text: Binding<String?>( text: Binding<String?>(get: { config.overrideFakeIP }, set: { config.overrideFakeIP = $0 ?? "" }),
get: { config.overrideFakeIP },
set: { config.overrideFakeIP = $0 ?? "" }
),
editable: true editable: true
) )
networkConfigRow(label: "Active", text: .constant(config.overrideActive), editable: false) networkConfigRow(
label: "Active",
text: Binding<String?>(get: { config.overrideActive }, set: { _ in }),
editable: false
)
} header: { } header: {
Text("Override Configuration") Text("Override Configuration")
} footer: { } footer: {
HStack(alignment: .top, spacing: 0) { HStack(alignment: .top, spacing: 0) {
Text("Note: ") Text("Note: ")
Text("if override configuration is invalid or unusable SideStore may use auto-discovered configuration as fallback") Text("if override configuration is invalid or unusable SideStore may use auto-discovered config as fallback.")
} }
} }
} }