Make sure to process history after the rest of init is done
Otherwise, with 5ccafd62d4
the history starts
processing before the webview opened, and opening it is delayed until the whole
history is read.
Instead, call _process_args directly (I'm not even sure why it was using a 0ms
QTimer...) and schedule _init_late_modules after everything is really done.
This commit is contained in:
parent
5ccafd62d4
commit
c422897abb
@ -142,8 +142,7 @@ def init(args, crash_handler):
|
||||
pre_text="Error while initializing")
|
||||
sys.exit(usertypes.Exit.err_init)
|
||||
|
||||
QTimer.singleShot(0, functools.partial(_process_args, args))
|
||||
QTimer.singleShot(10, functools.partial(_init_late_modules, args))
|
||||
_process_args(args)
|
||||
|
||||
log.init.debug("Initializing eventfilter...")
|
||||
event_filter = EventFilter(qApp)
|
||||
@ -161,6 +160,8 @@ def init(args, crash_handler):
|
||||
|
||||
macros.init()
|
||||
|
||||
QTimer.singleShot(10, functools.partial(_init_late_modules, args))
|
||||
|
||||
log.init.debug("Init done!")
|
||||
crash_handler.raise_crashdlg()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user