diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 7c626e9a1..7342e345b 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -38,6 +38,9 @@ class AnkiQt(QMainWindow): self.reviewingStarted = False if sys.platform.startswith("darwin"): qt_mac_set_menubar_icons(False) + elif sys.platform.startswith("win32"): + # make sure they're picked up on bundle + from ctypes import windll, wintypes ankiqt.mw = self self.app = app self.config = config