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:
parent
055813600e
commit
eb0102bde9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue