mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make sure splash is shown on win32, use finish() instead of hide
This commit is contained in:
parent
3183fd2985
commit
44412c72e4
2 changed files with 2 additions and 1 deletions
|
@ -60,6 +60,7 @@ def run():
|
|||
pixmap = QPixmap(":/icons/anki-logo.png")
|
||||
ui.splash = QSplashScreen(pixmap)
|
||||
ui.splash.show()
|
||||
app.processEvents()
|
||||
|
||||
|
||||
# setup paths for forms, icons
|
||||
|
|
|
@ -76,7 +76,7 @@ class AnkiQt(QMainWindow):
|
|||
except:
|
||||
ui.utils.showWarning(_("Broken plugin:\n\n%s") %
|
||||
traceback.format_exc())
|
||||
ui.splash.hide()
|
||||
ui.splash.finish(self)
|
||||
self.show()
|
||||
|
||||
def setupMainWindow(self):
|
||||
|
|
Loading…
Reference in a new issue