From 5aa463b5e0cb05d3607d2d83e711e2522408e3f3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Jun 2008 13:39:32 -0700 Subject: [PATCH] calibredb should ask the GUI to refresh its book list after setting metadata --- src/calibre/library/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 451e91acc0..edda1c8502 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -337,6 +337,9 @@ def do_set_metadata(db, id, stream): mi = OPFReader(stream) db.set_metadata(id, mi) do_show_metadata(db, id, False) + if SingleApplication is not None: + sa = SingleApplication('calibre GUI') + sa.send_message('refreshdb:') def command_set_metadata(args, dbpath): parser = get_parser(_(