mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 14:20:09 +01:00
Handle the auto flag in promptForFlushDnsCache
This commit is contained in:
+6
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user