show main window on startup on mac

this causes a visible resize, but seems to fix the intermittent
beachball on startup issue
This commit is contained in:
Damien Elmes 2014-03-14 15:55:15 +09:00
parent 29026b08e2
commit 5cc8e9b7d3

View File

@ -63,6 +63,8 @@ class AnkiQt(QMainWindow):
self.onAppMsg(unicode(args[0], sys.getfilesystemencoding(), "ignore"))
# Load profile in a timer so we can let the window finish init and not
# close on profile load error.
if isMac and qtmajor >= 5:
self.show()
self.progress.timer(10, self.setupProfile, False)
def setupUI(self):