From 4a3bb3ac93bb3373d5505822a792cbb1a41f7824 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Jan 2022 19:08:55 +0530 Subject: [PATCH] ... --- src/calibre/build_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/build_forms.py b/src/calibre/build_forms.py index 5a5098622f..39bf932873 100644 --- a/src/calibre/build_forms.py +++ b/src/calibre/build_forms.py @@ -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 # the qt5 migration 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 force_compile = not gprefs.get(f'migrated_forms_to_qt{qt_major}', False)