From c58087d5914322ab8f693729605a9508d67bb676 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Jan 2016 18:29:26 +0100 Subject: Add command line option to suppress dialogs Implement a -q/--quiet command line option to disable system dialogs temporarily. Signed-off-by: Lukas Fleischer --- src/utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 528657e..deff631 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1653,3 +1653,8 @@ int hash_matches(const char *pattern, const char *hash) return (starts_with(hash, pattern) != invert); } + +int show_dialogs(void) +{ + return (!quiet) && conf.system_dialogs; +} -- cgit v1.2.3-54-g00ecf