Fix crash in silent action prefs
This commit is contained in:
parent
44fbbd6a80
commit
315ea39682
|
@ -31,7 +31,7 @@ struct SilentActionPrefs : View {
|
||||||
// })
|
// })
|
||||||
// var silentActionPermissions: [SilentActionPermission]
|
// var silentActionPermissions: [SilentActionPermission]
|
||||||
// @Preference(\.silentActions) var silentActions: [String: Preferences.Permission]
|
// @Preference(\.silentActions) var silentActions: [String: Preferences.Permission]
|
||||||
@EnvironmentObject var preferences: Preferences
|
@ObservedObject var preferences = Preferences.shared
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
List(Array(preferences.silentActions.keys), id: \.self) { source in
|
List(Array(preferences.silentActions.keys), id: \.self) { source in
|
||||||
|
|
Loading…
Reference in New Issue