mirror of
https://github.com/SideStore/SideStore.git
synced 2026-03-27 12:55:40 +01:00
IfaceScanner: fix some state update issues
This commit is contained in:
@@ -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.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
Dependencies/minimuxer
vendored
2
Dependencies/minimuxer
vendored
Submodule Dependencies/minimuxer updated: c9da68c3ff...45e7f24d1d
Reference in New Issue
Block a user