calibredb should ask the GUI to refresh its book list after setting metadata

This commit is contained in:
Kovid Goyal 2008-06-16 13:39:32 -07:00
parent 99c7311c02
commit 5aa463b5e0

View File

@ -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(_(