mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -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):
|
||||
from calibre.gui2.ui import Main
|
||||
self.timed_print('Constructing main UI...')
|
||||
main = self.main = Main(self.opts, gui_debug=self.gui_debug)
|
||||
if self.splash_screen is not None:
|
||||
self.splash_screen.show_message(_('Initializing user interface...'))
|
||||
main = self.main = Main(self.opts, gui_debug=self.gui_debug)
|
||||
try:
|
||||
with gprefs: # Only write gui.json after initialization is complete
|
||||
main.initialize(self.library_path, db, self.actions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user