mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
don't clear window only to write to it again
This commit is contained in:
parent
bbe933890f
commit
e2cbfd1916
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ class View(object):
|
||||||
"Idempotently display the current state (prompt for question, etc)"
|
"Idempotently display the current state (prompt for question, etc)"
|
||||||
if self.state == "noDeck" or self.state == "studyScreen":
|
if self.state == "noDeck" or self.state == "studyScreen":
|
||||||
return
|
return
|
||||||
self.clearWindow()
|
self.buffer = ""
|
||||||
self.haveTop = (self.main.lastCard and (
|
self.haveTop = (self.main.lastCard and (
|
||||||
self.main.config['showLastCardContent'] or
|
self.main.config['showLastCardContent'] or
|
||||||
self.main.config['showLastCardInterval'])) or (
|
self.main.config['showLastCardInterval'])) or (
|
||||||
|
@ -196,7 +196,7 @@ class View(object):
|
||||||
txt = txt.replace("</span>", "​</span>")
|
txt = txt.replace("</span>", "​</span>")
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def onLoadFinished(self):
|
def onLoadFinished(self, bool):
|
||||||
if self.state == "showAnswer":
|
if self.state == "showAnswer":
|
||||||
if self.main.config['scrollToAnswer']:
|
if self.main.config['scrollToAnswer']:
|
||||||
mf = self.body.page().mainFrame()
|
mf = self.body.page().mainFrame()
|
||||||
|
|
Loading…
Reference in a new issue