Fix for External Notification and Serial module settings

This commit is contained in:
Jake-B 2025-03-29 10:16:55 -04:00
parent 18db01eb7f
commit bebeda8c74

View file

@ -196,8 +196,7 @@ struct Settings: View {
}
}
if let node = nodes.first(where: { $0.num == preferredNodeNum }),
node.metadata?.hasWifi ?? false, isModuleSupported(.extnotifConfig) {
if isModuleSupported(.extnotifConfig) {
NavigationLink(value: SettingsNavigationState.externalNotification) {
Label {
Text("external.notification")
@ -248,8 +247,7 @@ struct Settings: View {
}
}
if let node = nodes.first(where: { $0.num == preferredNodeNum }),
node.metadata?.hasWifi ?? false, isModuleSupported(.serialConfig) {
if isModuleSupported(.serialConfig) {
NavigationLink(value: SettingsNavigationState.serial) {
Label {
Text("serial")