Skip to content

Instantly share code, notes, and snippets.

@ospalh
Created May 28, 2012 15:26
Show Gist options
  • Save ospalh/2819735 to your computer and use it in GitHub Desktop.
Save ospalh/2819735 to your computer and use it in GitHub Desktop.
Quick fix for orphaned pupup list in Anki2
diff --git a/aqt/dyndeckconf.py b/aqt/dyndeckconf.py
index 5b021f0..c7867d4 100644
--- a/aqt/dyndeckconf.py
+++ b/aqt/dyndeckconf.py
@@ -4,7 +4,7 @@
from aqt.qt import *
import aqt
-from anki.utils import ids2str
+from anki.utils import ids2str, isMac, isWin
from aqt.utils import showInfo, showWarning, openHelp, getOnlyText, askUser
from operator import itemgetter
@@ -35,6 +35,8 @@ class DeckConf(QDialog):
self.show()
if first:
self.form.examples.showPopup()
+ if not isMac and not isWin:
+ mw.progress.timer(200, self.form.examples.showPopup, False)
self.exec_()
def setupOrder(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment