-
Notifications
You must be signed in to change notification settings - Fork 181
feat: settings to allow new networks and show notif when a network is disallowed #1658
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
28c30f1
213ba8c
728c531
dce04df
72d58c9
03b759e
c74ed00
4724451
b5811da
d934a90
d463367
1be6d59
e4900a1
c42be5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,6 +95,8 @@ class BackupProfileModel(BaseModel): | |
| pre_backup_cmd = pw.CharField(default='') | ||
| post_backup_cmd = pw.CharField(default='') | ||
| dont_run_on_metered_networks = pw.BooleanField(default=True) | ||
| allow_new_networks = pw.BooleanField(default=False) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here it defaults to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think yf and I discussed this before (been long so idr exactly where, I tried searching). The new behaviour should not surprise existing users, so the migration changes nothing. But for new users, having this value as false is more beneficial.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. found it - #1658 (comment) |
||
| show_notification_when_network_disallowed = pw.BooleanField(default=True) | ||
|
|
||
| def refresh(self): | ||
| return type(self).get(self._pk_expr()) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.