forked from shadowfacts/Tusker
Remove unnecessary prefernces change notification
This commit is contained in:
parent
86d5a73c85
commit
392e51eb3e
|
@ -77,10 +77,6 @@ struct PreferencesView: View {
|
||||||
}
|
}
|
||||||
.listStyle(GroupedListStyle())
|
.listStyle(GroupedListStyle())
|
||||||
.navigationBarTitle(Text("Preferences"), displayMode: .inline)
|
.navigationBarTitle(Text("Preferences"), displayMode: .inline)
|
||||||
.onDisappear {
|
|
||||||
// todo: this onDisappear callback is not called in beta 4, check again in beta 5
|
|
||||||
NotificationCenter.default.post(name: .preferencesChanged, object: nil)
|
|
||||||
}
|
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue