-
Notifications
You must be signed in to change notification settings - Fork 426
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
Enabled always-on by default #2043
Conversation
@@ -98,7 +98,7 @@ public struct UserDefaultsWrapper<T> { | |||
|
|||
case syncEnvironment = "com.duckduckgo.ios.sync-environment" | |||
|
|||
case networkProtectionDebugOptionAlwaysOnEnabled = "com.duckduckgo.network-protection.always-on.enabled" | |||
case networkProtectionDebugOptionAlwaysOnDisabled = "com.duckduckgo.network-protection.always-on.disabled" |
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.
Changing the user default so that it will be ON by default for existing users. In any case the change makes sense IMO since the default is now going to be ON, so the presence of this will most likely indicate that the user disabled always on.
case .enableAlwaysOn: | ||
cell.textLabel?.text = "Enable Always On" | ||
case .toggleAlwaysOn: | ||
cell.textLabel?.text = "Always On" |
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.
Changed the name since the tick in the debug menu options indicates whether this is ON or OFF.
@@ -54,7 +54,7 @@ final class NetworkProtectionDebugViewController: UITableViewController { | |||
} | |||
|
|||
enum DebugFeatureRows: Int, CaseIterable { | |||
case enableAlwaysOn | |||
case toggleAlwaysOn |
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 case is really for toggling always on, not enabling it.
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.
Works like a charm. Thanks for doing this! 👍
Task/Issue URL: https://app.asana.com/0/0/1205573532958049/f
Description:
In this PR we enable always on by default, and change the debug menu option's title to just "Always On".
Steps to test this PR:
Internal references:
Software Engineering Expectations
Technical Design Template