Skip to content

Commit

Permalink
Fix FAQ menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
halo committed Feb 7, 2024
1 parent 839574b commit e03dc46
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions LinkLiar/Views/Settings/Sections/FaqView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ extension SettingsView {
GroupBox("Changing your MAC address makes you loose your connection.", content: {
HStack {
Text("""
If you change a MAC address while the interface is connected, you will loose connection. \
The interface may attempt to reconnect, which normally succeeds within seconds (now using the new MAC address).
The MAC address of an interface cannot be modified while connected to a Wi-Fi network. \
That's why LinkLiar will disassociate from any connected network before modifying the MAC address.
""")
Spacer()
}
Expand All @@ -55,7 +55,7 @@ extension SettingsView {
Spacer()
}
}).padding(.bottom)

}.padding()
}
}
Expand Down
3 changes: 3 additions & 0 deletions LinkLiar/Views/Settings/SettingsDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ struct SettingsDetailView: View {
case SettingsView.Pane.community.rawValue:
SettingsView.CommunityView().environment(state)

case SettingsView.Pane.help.rawValue:
SettingsView.FaqView().environment(state)

case SettingsView.Pane.preferences.rawValue:
SettingsView.PreferencesView().environment(state)

Expand Down
27 changes: 15 additions & 12 deletions LinkLiar/Views/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,18 @@ struct SettingsView: View {
Label("Community", systemImage: "bubble")
}

NavigationLink(value: Pane.preferences.rawValue) {
Label("Settings", systemImage: "gear")
}

NavigationLink(value: Pane.vendors.rawValue) {
Label("Vendors", systemImage: "apple.logo")
}

NavigationLink(value: Pane.help.rawValue) {
Label("FAQ", systemImage: "book.pages")
}

NavigationLink(value: Pane.troubleshoot.rawValue) {
Label("Troubleshoot", systemImage: "bandage")
Spacer()

NavigationLink(value: Pane.preferences.rawValue) {
Label("Settings", systemImage: "gear")
}

NavigationLink(value: Pane.uninstall.rawValue) {
Label("Uninstall", systemImage: "trash")
NavigationLink(value: Pane.vendors.rawValue) {
Label("Vendors", systemImage: "apple.logo")
}

Spacer()
Expand All @@ -65,6 +59,15 @@ struct SettingsView: View {
}

Spacer()

NavigationLink(value: Pane.troubleshoot.rawValue) {
Label("Troubleshoot", systemImage: "bandage")
}

NavigationLink(value: Pane.uninstall.rawValue) {
Label("Uninstall", systemImage: "trash")
}

}
.toolbar(removing: .sidebarToggle)
.navigationSplitViewColumnWidth(155)
Expand Down

0 comments on commit e03dc46

Please sign in to comment.