mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Get intended default values for bw limit settings for account when nothing is set
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
2803690285
commit
2d0c069039
1 changed files with 10 additions and 2 deletions
|
@ -490,8 +490,16 @@ AccountPtr AccountManager::loadAccountHelper(QSettings &settings)
|
|||
acc->setProxyPort(settings.value(networkProxyPortC).toInt());
|
||||
acc->setProxyNeedsAuth(settings.value(networkProxyNeedsAuthC).toBool());
|
||||
acc->setProxyUser(settings.value(networkProxyUserC).toString());
|
||||
acc->setUploadLimitSetting(settings.value(networkUploadLimitSettingC).value<Account::AccountNetworkTransferLimitSetting>());
|
||||
acc->setDownloadLimitSetting(settings.value(networkDownloadLimitSettingC).value<Account::AccountNetworkTransferLimitSetting>());
|
||||
acc->setUploadLimitSetting(
|
||||
settings.value(
|
||||
networkUploadLimitSettingC,
|
||||
QVariant::fromValue(Account::AccountNetworkTransferLimitSetting::GlobalLimit)
|
||||
).value<Account::AccountNetworkTransferLimitSetting>());
|
||||
acc->setDownloadLimitSetting(
|
||||
settings.value(
|
||||
networkDownloadLimitSettingC,
|
||||
QVariant::fromValue(Account::AccountNetworkTransferLimitSetting::GlobalLimit)
|
||||
).value<Account::AccountNetworkTransferLimitSetting>());
|
||||
acc->setUploadLimit(settings.value(networkUploadLimitC).toInt());
|
||||
acc->setDownloadLimit(settings.value(networkDownloadLimitC).toInt());
|
||||
|
||||
|
|
Loading…
Reference in a new issue