mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix runhook reference
This commit is contained in:
parent
1da04aca5d
commit
fdfac00a5e
1 changed files with 1 additions and 1 deletions
|
@ -67,6 +67,7 @@ color: #13486c;
|
||||||
class AnkiApp(QApplication):
|
class AnkiApp(QApplication):
|
||||||
|
|
||||||
def event(self, evt):
|
def event(self, evt):
|
||||||
|
from anki.hooks import runHook
|
||||||
if evt.type() == QEvent.FileOpen:
|
if evt.type() == QEvent.FileOpen:
|
||||||
runHook("macLoadEvent", unicode(evt.file()))
|
runHook("macLoadEvent", unicode(evt.file()))
|
||||||
return True
|
return True
|
||||||
|
@ -74,7 +75,6 @@ class AnkiApp(QApplication):
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
import config
|
import config
|
||||||
from anki.hooks import runHook
|
|
||||||
|
|
||||||
# home on win32 is broken
|
# home on win32 is broken
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
|
Loading…
Reference in a new issue