diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 677756dda..86ae083f7 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -369,13 +369,12 @@ An error occurred. Please copy the following message into a bug report.\n\n""" + for i in range(1, 5): l = getattr(self.mainWin, "easeLabel%d" % i) if self.config['suppressEstimates']: - l.hide() + l.setText("") + elif i == 1: + l.setText(self.withInterfaceFont(_("Soon"))) else: - if i == 1: - l.setText(self.withInterfaceFont(_("Soon"))) - else: - l.setText(self.withInterfaceFont("" + - self.deck.nextIntervalStr(self.currentCard, i) + "")) + l.setText(self.withInterfaceFont("" + + self.deck.nextIntervalStr(self.currentCard, i) + "")) def withInterfaceFont(self, text): family = self.config["interfaceFontFamily"] diff --git a/ankiqt/ui/utils.py b/ankiqt/ui/utils.py index e570d664a..7566ce39c 100644 --- a/ankiqt/ui/utils.py +++ b/ankiqt/ui/utils.py @@ -170,7 +170,7 @@ def mungeQA(deck, txt): prefix = u"file:///" else: 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 txt = re.sub('img src="(.*?)"', quote, txt) return txt