From 9418b62c7af7ff005d0a0daf10477895f72a4f06 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 7 Apr 2009 11:31:56 +0900 Subject: [PATCH] if the due counts are disabled, hide in titlebar too --- ankiqt/ui/main.py | 17 ++++++++++------- designer/preferences.ui | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 8810118e8..f60efef59 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1825,13 +1825,16 @@ it to your friends. deckpath = self.deck.name() if self.deck.modifiedSinceSave(): deckpath += "*" - title = _("%(path)s (%(due)d of %(cards)d due)" - " - %(title)s") % { - "path": deckpath, - "title": title, - "cards": self.deck.cardCount, - "due": self.deck.failedSoonCount + self.deck.revCount - } + if not self.config['showProgress']: + title = deckpath + " - " + title + else: + title = _("%(path)s (%(due)d of %(cards)d due)" + " - %(title)s") % { + "path": deckpath, + "title": title, + "cards": self.deck.cardCount, + "due": self.deck.failedSoonCount + self.deck.revCount + } self.setWindowTitle(title) def setStatus(self, text, timeout=3000): diff --git a/designer/preferences.ui b/designer/preferences.ui index c51f1e1d5..95c3f30e0 100644 --- a/designer/preferences.ui +++ b/designer/preferences.ui @@ -100,7 +100,7 @@ - Show information in status bar + Show due count, ETA and performance bars