mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
85d5bd4bd3
commit
949fda1a5b
@ -143,6 +143,9 @@ class ViewLog(QDialog): # {{{
|
||||
QApplication.clipboard().setText(txt)
|
||||
# }}}
|
||||
|
||||
|
||||
_proceed_memory = []
|
||||
|
||||
class ProceedNotification(MessageBox): # {{{
|
||||
|
||||
def __init__(self, callback, payload, html_log, log_viewer_title, title, msg,
|
||||
@ -174,6 +177,7 @@ class ProceedNotification(MessageBox): # {{{
|
||||
self.det_msg_toggle.setVisible(bool(det_msg))
|
||||
self.setModal(False)
|
||||
self.callback = callback
|
||||
_proceed_memory.append(self)
|
||||
|
||||
def show_log(self):
|
||||
self.log_viewer = ViewLog(self.log_viewer_title, self.html_log,
|
||||
@ -189,6 +193,7 @@ class ProceedNotification(MessageBox): # {{{
|
||||
self.setParent(None)
|
||||
self.finished.disconnect()
|
||||
self.vlb.clicked.disconnect()
|
||||
_proceed_memory.remove(self)
|
||||
# }}}
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -145,10 +145,10 @@ def download(ids, db, do_identify, covers,
|
||||
ans = {}
|
||||
count = 0
|
||||
all_failed = True
|
||||
#'''
|
||||
'''
|
||||
# Test apply dialog
|
||||
all_failed = do_identify = covers = False
|
||||
#'''
|
||||
'''
|
||||
for i, mi in izip(ids, metadata):
|
||||
if abort.is_set():
|
||||
log.error('Aborting...')
|
||||
|
Loading…
x
Reference in New Issue
Block a user