1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

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

View file

@ -94,7 +94,8 @@ def prepare(cls, profile):
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