mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix the "flash" when starting on windows (at least).
This differs from the patch I sent. I moved the "show()" to happen before the plugin initialization_complete() methods are called, just in case they use something like isVisible(). The view_manager plugin now works correctly, which it didn't in 7.2. Tested with small and large libraries.
This commit is contained in:
parent
440a990f2f
commit
186f2ee69c
@ -399,9 +399,6 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
setattr(self, '__systray_minimized', True)
|
setattr(self, '__systray_minimized', True)
|
||||||
if do_hide_windows:
|
if do_hide_windows:
|
||||||
self.hide_windows()
|
self.hide_windows()
|
||||||
if show_gui:
|
|
||||||
timed_print('GUI main window shown')
|
|
||||||
self.show()
|
|
||||||
self.layout_container.relayout()
|
self.layout_container.relayout()
|
||||||
QTimer.singleShot(0, self.post_initialize_actions)
|
QTimer.singleShot(0, self.post_initialize_actions)
|
||||||
self.read_settings()
|
self.read_settings()
|
||||||
@ -410,6 +407,10 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
self.bars_manager.start_animation()
|
self.bars_manager.start_animation()
|
||||||
self.set_window_title()
|
self.set_window_title()
|
||||||
|
|
||||||
|
if show_gui:
|
||||||
|
timed_print('GUI main window shown')
|
||||||
|
self.show()
|
||||||
|
|
||||||
for ac in self.iactions.values():
|
for ac in self.iactions.values():
|
||||||
try:
|
try:
|
||||||
ac.initialization_complete()
|
ac.initialization_complete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user