From 171e82e19c600efc584b29a00ebbb29596958d2b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Apr 2018 05:54:48 +0530 Subject: [PATCH] Make CALIBRE_USE_SYSTEM_THEME=0 the same as unset --- src/calibre/gui2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 55184171c4..1c8c459853 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -928,7 +928,7 @@ class Application(QApplication): if iswindows or isosx: using_calibre_style = gprefs['ui_style'] != 'system' else: - using_calibre_style = 'CALIBRE_USE_SYSTEM_THEME' not in os.environ + using_calibre_style = os.environ.get('CALIBRE_USE_SYSTEM_THEME', '0') == '0' if force_calibre_style: using_calibre_style = True self.using_calibre_style = using_calibre_style