mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
calibredb: When deleting books/formats wait for deleted files to be moved to recycle bin, before quitting
This commit is contained in:
parent
255f6888ce
commit
2e20f1aa83
@ -408,6 +408,8 @@ def do_remove(db, ids):
|
||||
db.new_api.remove_books(book_ids)
|
||||
db.clean()
|
||||
send_message()
|
||||
from calibre.db.delete_service import delete_service
|
||||
delete_service().wait()
|
||||
|
||||
def remove_option_parser():
|
||||
return get_parser(_(
|
||||
@ -481,6 +483,8 @@ def command_add_format(args, dbpath):
|
||||
def do_remove_format(db, id, fmt):
|
||||
db.remove_format(id, fmt, index_is_id=True)
|
||||
send_message()
|
||||
from calibre.db.delete_service import delete_service
|
||||
delete_service().wait()
|
||||
|
||||
def remove_format_option_parser():
|
||||
return get_parser(_(
|
||||
|
Loading…
x
Reference in New Issue
Block a user