mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
move hook import to global scope for issue 3289
This commit is contained in:
parent
8dee8a9add
commit
926d407f30
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,7 @@ from aqt.qt import *
|
|||
import locale, gettext
|
||||
import anki.lang
|
||||
from anki.consts import HELP_SITE as appHelpSite
|
||||
from anki.hooks import runHook
|
||||
|
||||
appVersion="2.0-rc4"
|
||||
appWebsite="http://ankisrs.net/"
|
||||
|
@ -160,7 +161,6 @@ class AnkiApp(QApplication):
|
|||
##################################################
|
||||
|
||||
def event(self, evt):
|
||||
from anki.hooks import runHook
|
||||
if evt.type() == QEvent.FileOpen:
|
||||
self.emit(SIGNAL("appMsg"), evt.file() or "raise")
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue