Set initial focused window correctly.
This commit is contained in:
parent
dfc10a7d40
commit
ae44aa01a6
@ -153,7 +153,10 @@ class Application(QApplication):
|
||||
download_manager = downloads.DownloadManager(self)
|
||||
objreg.register('download-manager', download_manager)
|
||||
log.init.debug("Initializing main window...")
|
||||
mainwindow.MainWindow.spawn(False if self._args.nowindow else True)
|
||||
win_id = mainwindow.MainWindow.spawn(
|
||||
False if self._args.nowindow else True)
|
||||
main_window = objreg.get('main-window', scope='window', window=win_id)
|
||||
self.setActiveWindow(main_window)
|
||||
log.init.debug("Initializing debug console...")
|
||||
debug_console = console.ConsoleWidget()
|
||||
objreg.register('debug-console', debug_console)
|
||||
|
Loading…
Reference in New Issue
Block a user