Make CALIBRE_USE_SYSTEM_THEME=0 the same as unset

This commit is contained in:
Kovid Goyal 2018-04-11 05:54:48 +05:30
parent 5f9767c40b
commit 171e82e19c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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