mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
ae2b4a4214
commit
e3765c9a0a
@ -765,6 +765,8 @@ class Application(QApplication):
|
||||
args = [override_program_name] + args[1:]
|
||||
qargs = [i.encode('utf-8') if isinstance(i, unicode) else i for i in args]
|
||||
self.pi = plugins['progress_indicator'][0]
|
||||
if DEBUG:
|
||||
self.redirect_notify = True
|
||||
QApplication.__init__(self, qargs)
|
||||
global gui_thread, qt_app
|
||||
gui_thread = QThread.currentThread()
|
||||
@ -774,8 +776,6 @@ class Application(QApplication):
|
||||
self._file_open_paths = []
|
||||
self._file_open_lock = RLock()
|
||||
self.setup_styles(force_calibre_style)
|
||||
if DEBUG:
|
||||
self.redirect_notify = True
|
||||
|
||||
if DEBUG:
|
||||
def notify(self, receiver, event):
|
||||
|
Loading…
x
Reference in New Issue
Block a user