mirror of
https://github.com/borgbase/vorta
synced 2025-03-11 06:33:46 +00:00
Avoid checking for metered network, if there is no wifi (#2141)
This commit is contained in:
parent
6bec467e44
commit
64586dff07
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ from vorta.network_status.abc import NetworkStatusMonitor, SystemWifiInfo
|
|||
class DarwinNetworkStatus(NetworkStatusMonitor):
|
||||
def is_network_metered(self) -> bool:
|
||||
interface: CWInterface = self._get_wifi_interface()
|
||||
|
||||
# If there is no Wifi at all.
|
||||
if interface is None:
|
||||
return False
|
||||
|
||||
network: Optional[CWNetwork] = interface.lastNetworkJoined()
|
||||
|
||||
if network:
|
||||
|
|
Loading…
Add table
Reference in a new issue