From 7fc99f3d80bfb5160852c6df869f0894137448fe Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 17 May 2015 01:09:33 +0200 Subject: [PATCH] adblock: Don't show message with --basedir given. --- qutebrowser/browser/adblock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py index 573939d8b..bec74f096 100644 --- a/qutebrowser/browser/adblock.py +++ b/qutebrowser/browser/adblock.py @@ -110,7 +110,9 @@ class HostBlocker: except OSError: log.misc.exception("Failed to read host blocklist!") else: - if config.get('content', 'host-block-lists') is not None: + args = objreg.get('args') + if (config.get('content', 'host-block-lists') is not None and + args.basedir is None): message.info('current', "Run :adblock-update to get adblock lists.")