Fix duplicate path bug
This commit is contained in:
parent
f52716f748
commit
37ea4c9b68
|
@ -62,11 +62,6 @@ struct ContentView: View {
|
||||||
.environment(huggingFace)
|
.environment(huggingFace)
|
||||||
.environmentObject(preferences)
|
.environmentObject(preferences)
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.onChange(of: navigator.path) { _, newValue in
|
|
||||||
guard !newValue.isEmpty else { navigator.showTabbar = true; return }
|
|
||||||
navigator.showTabbar = newValue
|
|
||||||
.filter({ $0 == RouterDestination.settings }).first == nil
|
|
||||||
}
|
|
||||||
.onAppear {
|
.onAppear {
|
||||||
showNew()
|
showNew()
|
||||||
|
|
||||||
|
|
|
@ -151,6 +151,14 @@ struct SettingsView: View {
|
||||||
.listThreaded()
|
.listThreaded()
|
||||||
.navigationTitle("settings")
|
.navigationTitle("settings")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
.onAppear {
|
||||||
|
navigator.showTabbar = false
|
||||||
|
}
|
||||||
|
.onChange(of: navigator.path) { _, newValue in
|
||||||
|
guard !newValue.isEmpty else { navigator.showTabbar = true; return }
|
||||||
|
navigator.showTabbar = newValue
|
||||||
|
.filter({ $0 == RouterDestination.settings }).first == nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue