mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
make sure help doesn't pop back up w/ card stats
This commit is contained in:
parent
0af13cb550
commit
b9676149a3
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ class HelpArea(object):
|
||||||
else:
|
else:
|
||||||
self.focus=focus
|
self.focus=focus
|
||||||
self.config = config
|
self.config = config
|
||||||
|
self.handlers = []
|
||||||
self.widget.connect(self.widget, SIGNAL("anchorClicked(QUrl)"),
|
self.widget.connect(self.widget, SIGNAL("anchorClicked(QUrl)"),
|
||||||
self.anchorClicked)
|
self.anchorClicked)
|
||||||
if sys.platform.startswith("darwin"):
|
if sys.platform.startswith("darwin"):
|
||||||
|
@ -39,6 +40,8 @@ class HelpArea(object):
|
||||||
runHook("helpChanged")
|
runHook("helpChanged")
|
||||||
|
|
||||||
def showText(self, text, py={}):
|
def showText(self, text, py={}):
|
||||||
|
if "hide" in self.handlers:
|
||||||
|
self.handlers["hide"]()
|
||||||
self.show()
|
self.show()
|
||||||
self.buffer = text
|
self.buffer = text
|
||||||
self.addHider()
|
self.addHider()
|
||||||
|
|
Loading…
Reference in a new issue