Skip to content

Commit 46be655

Browse files
committed
refactor: sync UserDefaults after filter config
Synchronize UserDefaults immediately after updating the filter bar configuration to ensure changes persist across app launches.
1 parent f0bb300 commit 46be655

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift-paperless/Views/Settings/FilterBarConfigView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ struct FilterBarConfigView: View {
143143
}
144144
AppSettings.shared.filterBarConfiguration = FilterBarConfiguration.fromComponents(
145145
components)
146+
UserDefaults.standard.synchronize()
146147
}
147148
}
148149

0 commit comments

Comments
 (0)