mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Dont notify GUI when connecting to remote
This commit is contained in:
parent
97e544dd0a
commit
3a764a429d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user