From: cryzed Date: Mon, 13 Jun 2016 00:13:36 +0000 (+0200) Subject: Handle the auto flag in promptForFlushDnsCache X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=85ada890ba2ce4b3b10f4bc2ab1a9fc16a461c10;p=stevenblack-hosts.git Handle the auto flag in promptForFlushDnsCache --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 3332a320e..82c73fa96 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -177,8 +177,12 @@ def promptForMoreCustomExclusions(question="Do you have more domains you want to def promptForFlushDnsCache(): - if settings['flushdnscache'] or query_yes_no("Attempt to flush the DNS cache?"): - flushDnsCache() + if settings['auto']: + if settings['flushdnscache']: + flushDnsCache() + else: + if settings['flushdnscache'] or query_yes_no("Attempt to flush the DNS cache?"): + flushDnsCache() def promptForMove(finalFile):