-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix LoginsPreferences instances being out of sync #499
Conversation
The model is an adapter for displaying values in Autofill Preferences pane.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, nice work! 👏 I really like this approach to the problem.
There's one last thing we need to restore that was lost during the preferences re-write: changing the Auto-Lock setting needs to be gated behind an authentication check, otherwise someone could disable the check in order to bypass it.
The check was originally located here - once we have that authentication back in, this is good to merge!
@@ -20,42 +20,84 @@ import Foundation | |||
|
|||
final class AutofillPreferencesModel: ObservableObject { | |||
|
|||
@Published var isAutoLockEnabled: Bool { | |||
@Published var askToSaveUsernamesAndPasswords: Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of git diff noise here, but I only updated isAutoLockEnabled
and autoLockThreshold
and then I moved them below the other 3 properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT! 👍 💯
Task/Issue URL: https://app.asana.com/0/1199230911884351/1202064896664660/f
Tech Design URL:
CC: @samsymons
Description:
I restored Core-Data-backed
LoginsPreferences
and addedLoginsPreferencesModel
with@Published
properties only to be used by the preferences screen.While updating it, I decided to rename
LoginsPreferences
and related symbols toAutofill*
.Steps to test this PR:
Testing checklist:
Internal references:
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM