adblock: Don't show message if host-blocking-enabled is true

Fixes #2364
This commit is contained in:
Yannis Rohloff 2017-03-04 16:39:44 +01:00
parent 550514c20b
commit 6219b37c39

View File

@ -154,6 +154,9 @@ class HostBlocker:
def read_hosts(self):
"""Read hosts from the existing blocked-hosts file."""
if not config.get('content', 'host-blocking-enabled'):
return
self._blocked_hosts = set()
self._read_hosts_file(self._config_hosts_file,