don't clear window only to write to it again

This commit is contained in:
Damien Elmes 2010-01-27 20:06:24 +09:00
parent bbe933890f
commit e2cbfd1916

View file

@ -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>", "&#8203;</span>") txt = txt.replace("</span>", "&#8203;</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()