Skip to content
Snippets Groups Projects
Commit eb9e16fc authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

data transfer: set default limit to 20MB

Change-Id: Id35c24638f0434e030b5e5a15b635172e5afd2ab
parent ef42e22a
Branches
No related tags found
No related merge requests found
...@@ -285,6 +285,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD ...@@ -285,6 +285,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// set selected account if exists // set selected account if exists
self.appCoordinator.start() self.appCoordinator.start()
if !self.accountService.hasAccounts() { if !self.accountService.hasAccounts() {
// Set default download transfer limit to 20MB.
let userDefaults = UserDefaults.standard
if userDefaults.object(forKey: acceptTransferLimitKey) == nil {
userDefaults.set(20, forKey: acceptTransferLimitKey)
}
return return
} }
if self.accountService.hasAccountWithProxyEnabled() { if self.accountService.hasAccountWithProxyEnabled() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment