Limit network checking to only remote repos. By @samuel-w (#701)

This commit is contained in:
Samuel 2020-11-18 01:20:46 -06:00 committed by GitHub
parent 055813600e
commit eb0102bde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ class BorgCreateThread(BorgThread):
ret['message'] = trans_late('messages', 'Current Wifi is not allowed.')
return ret
if profile.dont_run_on_metered_networks and network_status_monitor.is_network_metered():
if profile.repo.is_remote_repo() and profile.dont_run_on_metered_networks \
and network_status_monitor.is_network_metered():
ret['message'] = trans_late('messages', 'Not running backup over metered connection.')
return ret