hide/show intervals in real time, create media dir when escaping

This commit is contained in:
Damien Elmes 2008-12-04 02:19:39 +09:00
parent 45dd2c2c58
commit cafb19f2ca
2 changed files with 6 additions and 7 deletions

View file

@ -369,9 +369,8 @@ An error occurred. Please copy the following message into a bug report.\n\n""" +
for i in range(1, 5): for i in range(1, 5):
l = getattr(self.mainWin, "easeLabel%d" % i) l = getattr(self.mainWin, "easeLabel%d" % i)
if self.config['suppressEstimates']: if self.config['suppressEstimates']:
l.hide() l.setText("")
else: elif i == 1:
if i == 1:
l.setText(self.withInterfaceFont(_("Soon"))) l.setText(self.withInterfaceFont(_("Soon")))
else: else:
l.setText(self.withInterfaceFont("<b>" + l.setText(self.withInterfaceFont("<b>" +

View file

@ -170,7 +170,7 @@ def mungeQA(deck, txt):
prefix = u"file:///" prefix = u"file:///"
else: else:
prefix = u"file://" prefix = u"file://"
src = prefix + os.path.join(deck.mediaDir(), match) src = prefix + os.path.join(deck.mediaDir(create=True), match)
return 'img src="%s"' % src return 'img src="%s"' % src
txt = re.sub('img src="(.*?)"', quote, txt) txt = re.sub('img src="(.*?)"', quote, txt)
return txt return txt