This commit is contained in:
Kovid Goyal 2022-01-09 19:08:55 +05:30
parent 5e3244c65c
commit 4a3bb3ac93
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,7 +43,7 @@ def build_forms(srcdir, info=None, summary=False, check_for_migration=False):
# Ensure that people running from source have all their forms rebuilt for # Ensure that people running from source have all their forms rebuilt for
# the qt5 migration # the qt5 migration
force_compile = os.environ.get('CALIBRE_FORCE_BUILD_UI_FORMS', '') in ('1', 'yes', 'true') force_compile = os.environ.get('CALIBRE_FORCE_BUILD_UI_FORMS', '') in ('1', 'yes', 'true')
if check_for_migration: if check_for_migration and not force_compile:
from calibre.gui2 import gprefs from calibre.gui2 import gprefs
force_compile = not gprefs.get(f'migrated_forms_to_qt{qt_major}', False) force_compile = not gprefs.get(f'migrated_forms_to_qt{qt_major}', False)