From 3a764a429d6cfd0eaa5842228ef0be6afed7e45c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Apr 2017 13:58:09 +0530 Subject: [PATCH] Dont notify GUI when connecting to remote --- src/calibre/db/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/cli/main.py b/src/calibre/db/cli/main.py index 8554de08f6..7646c6d8f1 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -48,7 +48,7 @@ def send_message(msg=''): def run_cmd(cmd, opts, args, db_ctx): m = module_for_cmd(cmd) ret = m.main(opts, args, db_ctx) - if not opts.dont_notify_gui and not getattr(m, 'readonly', False): + if not db_ctx.is_remote and not opts.dont_notify_gui and not getattr(m, 'readonly', False): send_message() return ret