Fix duplicate path bug
This commit is contained in:
parent
f52716f748
commit
37ea4c9b68
|
@ -62,11 +62,6 @@ struct ContentView: View {
|
|||
.environment(huggingFace)
|
||||
.environmentObject(preferences)
|
||||
.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 {
|
||||
showNew()
|
||||
|
||||
|
|
|
@ -151,6 +151,14 @@ struct SettingsView: View {
|
|||
.listThreaded()
|
||||
.navigationTitle("settings")
|
||||
.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