From 8c24464ba665f2dc2a6cbe5d76ff443981eb076d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jul 2013 17:10:29 +0530 Subject: [PATCH] Show [newdb] in the status bar when using the new backend --- src/calibre/gui2/init.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/init.py b/src/calibre/gui2/init.py index d066f8aa01..feed5bb4ad 100644 --- a/src/calibre/gui2/init.py +++ b/src/calibre/gui2/init.py @@ -10,7 +10,7 @@ import functools from PyQt4.Qt import (Qt, QApplication, QStackedWidget, QMenu, QTimer, QSize, QSizePolicy, QStatusBar, QLabel, QFont) -from calibre.utils.config import prefs +from calibre.utils.config import prefs, tweaks from calibre.constants import (isosx, __appname__, preferred_encoding, get_version) from calibre.gui2 import config, is_widescreen, gprefs @@ -161,8 +161,10 @@ class StatusBar(QStatusBar): # {{{ def __init__(self, parent=None): QStatusBar.__init__(self, parent) - self.base_msg = '%s %s' % (__appname__, get_version()) self.version = get_version() + self.base_msg = '%s %s' % (__appname__, self.version) + if tweaks.get('use_new_db', False): + self.base_msg += ' [newdb]' self.device_string = '' self.update_label = UpdateLabel('') self.total = self.current = self.selected = self.library_total = 0