mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
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:
parent
29026b08e2
commit
5cc8e9b7d3
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ class AnkiQt(QMainWindow):
|
||||||
self.onAppMsg(unicode(args[0], sys.getfilesystemencoding(), "ignore"))
|
self.onAppMsg(unicode(args[0], sys.getfilesystemencoding(), "ignore"))
|
||||||
# Load profile in a timer so we can let the window finish init and not
|
# Load profile in a timer so we can let the window finish init and not
|
||||||
# close on profile load error.
|
# close on profile load error.
|
||||||
|
if isMac and qtmajor >= 5:
|
||||||
|
self.show()
|
||||||
self.progress.timer(10, self.setupProfile, False)
|
self.progress.timer(10, self.setupProfile, False)
|
||||||
|
|
||||||
def setupUI(self):
|
def setupUI(self):
|
||||||
|
|
Loading…
Reference in a new issue