Reorder locations settings

This commit is contained in:
Arkadiusz Fal
2022-11-13 12:14:05 +01:00
parent 61d235780d
commit 256b1671c1
5 changed files with 172 additions and 97 deletions

View File

@@ -7,7 +7,7 @@ struct SettingsView: View {
#if os(macOS)
private enum Tabs: Hashable {
case browsing, player, quality, history, sponsorBlock, advanced, help
case browsing, player, quality, history, sponsorBlock, locations, advanced, help
}
@State private var selection: Tabs?
@@ -75,6 +75,13 @@ struct SettingsView: View {
}
.tag(Optional(Tabs.sponsorBlock))
}
Form {
LocationsSettings()
}
.tabItem {
Label("Locations", systemImage: "globe")
}
.tag(Optional(Tabs.locations))
Group {
AdvancedSettings()
@@ -145,6 +152,12 @@ struct SettingsView: View {
}
}
NavigationLink {
LocationsSettings()
} label: {
Label("Locations", systemImage: "globe")
}
NavigationLink {
AdvancedSettings()
} label: {
@@ -217,10 +230,12 @@ struct SettingsView: View {
return 500
case .sponsorBlock:
return 700
case .advanced:
return 750
case .help:
case .locations:
return 600
case .advanced:
return 250
case .help:
return 580
}
}
#endif