mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
raise window at end of startup
This commit is contained in:
parent
03abdfb720
commit
195944b395
1 changed files with 3 additions and 3 deletions
|
@ -75,9 +75,6 @@ class AnkiQt(QMainWindow):
|
||||||
ui.splash.update()
|
ui.splash.update()
|
||||||
self.setupErrorHandler()
|
self.setupErrorHandler()
|
||||||
self.setupMisc()
|
self.setupMisc()
|
||||||
# activate & raise is useful when run from the command line on osx
|
|
||||||
self.activateWindow()
|
|
||||||
self.raise_()
|
|
||||||
# check if we've been updated
|
# check if we've been updated
|
||||||
if "version" not in self.config:
|
if "version" not in self.config:
|
||||||
# could be new user, or upgrade from older version
|
# could be new user, or upgrade from older version
|
||||||
|
@ -118,6 +115,9 @@ class AnkiQt(QMainWindow):
|
||||||
ui.utils.showWarning(
|
ui.utils.showWarning(
|
||||||
_("Broken plugin:\n\n%s") %
|
_("Broken plugin:\n\n%s") %
|
||||||
unicode(traceback.format_exc(), "utf-8", "replace"))
|
unicode(traceback.format_exc(), "utf-8", "replace"))
|
||||||
|
# activate & raise is useful when run from the command line on osx
|
||||||
|
self.activateWindow()
|
||||||
|
self.raise_()
|
||||||
except:
|
except:
|
||||||
ui.utils.showInfo("Error during startup:\n%s" %
|
ui.utils.showInfo("Error during startup:\n%s" %
|
||||||
traceback.format_exc())
|
traceback.format_exc())
|
||||||
|
|
Loading…
Reference in a new issue