mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix splash screen getting stuck on OSX when restarting calibre in debug mode
This commit is contained in:
parent
2a98852026
commit
bec98698c4
@ -420,16 +420,19 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
if show_gui and self.gui_debug is not None:
|
if show_gui and self.gui_debug is not None:
|
||||||
|
QTimer.singleShot(10, self.show_gui_debug_msg)
|
||||||
|
|
||||||
|
self.iactions['Connect Share'].check_smartdevice_menus()
|
||||||
|
QTimer.singleShot(1, self.start_smartdevice)
|
||||||
|
QTimer.singleShot(100, self.update_toggle_to_tray_action)
|
||||||
|
|
||||||
|
def show_gui_debug_msg(self):
|
||||||
info_dialog(self, _('Debug mode'), '<p>' +
|
info_dialog(self, _('Debug mode'), '<p>' +
|
||||||
_('You have started calibre in debug mode. After you '
|
_('You have started calibre in debug mode. After you '
|
||||||
'quit calibre, the debug log will be available in '
|
'quit calibre, the debug log will be available in '
|
||||||
'the file: %s<p>The '
|
'the file: %s<p>The '
|
||||||
'log will be displayed automatically.')%self.gui_debug, show=True)
|
'log will be displayed automatically.')%self.gui_debug, show=True)
|
||||||
|
|
||||||
self.iactions['Connect Share'].check_smartdevice_menus()
|
|
||||||
QTimer.singleShot(1, self.start_smartdevice)
|
|
||||||
QTimer.singleShot(100, self.update_toggle_to_tray_action)
|
|
||||||
|
|
||||||
def esc(self, *args):
|
def esc(self, *args):
|
||||||
self.clear_button.click()
|
self.clear_button.click()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user