mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
give some feedback on a leech for now
This commit is contained in:
parent
287de04c8b
commit
2b637c9389
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ from aqt.qt import *
|
||||||
from anki.utils import fmtTimeSpan, stripHTML, isMac
|
from anki.utils import fmtTimeSpan, stripHTML, isMac
|
||||||
from anki.hooks import addHook, runHook, runFilter
|
from anki.hooks import addHook, runHook, runFilter
|
||||||
from anki.sound import playFromText, clearAudioQueue, hasSound
|
from anki.sound import playFromText, clearAudioQueue, hasSound
|
||||||
from aqt.utils import mungeQA, getBase, shortcut, openLink
|
from aqt.utils import mungeQA, getBase, shortcut, openLink, tooltip
|
||||||
import aqt
|
import aqt
|
||||||
|
|
||||||
class Reviewer(object):
|
class Reviewer(object):
|
||||||
|
@ -474,7 +474,8 @@ var updateTime = function () {
|
||||||
|
|
||||||
# fixme: update; clear on card transition
|
# fixme: update; clear on card transition
|
||||||
def onLeech(self, card):
|
def onLeech(self, card):
|
||||||
print "leech"
|
# for now
|
||||||
|
tooltip("Card was a leech.")
|
||||||
return
|
return
|
||||||
link = aqt.appHelpSite + "Leeches.html"
|
link = aqt.appHelpSite + "Leeches.html"
|
||||||
txt = (_("""\
|
txt = (_("""\
|
||||||
|
@ -484,7 +485,6 @@ Card was a <a href="%s">leech</a>.""") % link)
|
||||||
txt += _(" It has been suspended.")
|
txt += _(" It has been suspended.")
|
||||||
self.setNotice(txt)
|
self.setNotice(txt)
|
||||||
|
|
||||||
|
|
||||||
# Context menu
|
# Context menu
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue