mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Show initializing message before constructing Main
This commit is contained in:
parent
df695546c1
commit
14a64a239c
@ -251,9 +251,9 @@ class GuiRunner(QObject):
|
|||||||
def start_gui(self, db):
|
def start_gui(self, db):
|
||||||
from calibre.gui2.ui import Main
|
from calibre.gui2.ui import Main
|
||||||
self.timed_print('Constructing main UI...')
|
self.timed_print('Constructing main UI...')
|
||||||
main = self.main = Main(self.opts, gui_debug=self.gui_debug)
|
|
||||||
if self.splash_screen is not None:
|
if self.splash_screen is not None:
|
||||||
self.splash_screen.show_message(_('Initializing user interface...'))
|
self.splash_screen.show_message(_('Initializing user interface...'))
|
||||||
|
main = self.main = Main(self.opts, gui_debug=self.gui_debug)
|
||||||
try:
|
try:
|
||||||
with gprefs: # Only write gui.json after initialization is complete
|
with gprefs: # Only write gui.json after initialization is complete
|
||||||
main.initialize(self.library_path, db, self.actions)
|
main.initialize(self.library_path, db, self.actions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user