mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[ios] Hide voice guidance test button when voice guidance is disabled
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -92,6 +92,7 @@ struct SettingsNavigationView: View {
|
|||||||
} header: {
|
} header: {
|
||||||
Text("pref_tts_title")
|
Text("pref_tts_title")
|
||||||
} footer: {
|
} footer: {
|
||||||
|
if shouldProvideVoiceRouting {
|
||||||
Button {
|
Button {
|
||||||
Settings.playVoiceRoutingTest()
|
Settings.playVoiceRoutingTest()
|
||||||
} label: {
|
} label: {
|
||||||
@@ -106,6 +107,7 @@ struct SettingsNavigationView: View {
|
|||||||
.padding([.top, .bottom])
|
.padding([.top, .bottom])
|
||||||
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
|
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
Toggle("avoid_tolls", isOn: $shouldAvoidTollRoadsWhileRouting)
|
Toggle("avoid_tolls", isOn: $shouldAvoidTollRoadsWhileRouting)
|
||||||
|
|||||||
Reference in New Issue
Block a user