Dont notify GUI when connecting to remote

This commit is contained in:
Kovid Goyal 2017-04-29 13:58:09 +05:30
parent 97e544dd0a
commit 3a764a429d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -48,7 +48,7 @@ def send_message(msg=''):
def run_cmd(cmd, opts, args, db_ctx): def run_cmd(cmd, opts, args, db_ctx):
m = module_for_cmd(cmd) m = module_for_cmd(cmd)
ret = m.main(opts, args, db_ctx) 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() send_message()
return ret return ret