From 76e6da66522392b83fff519e018b57167a41e95b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 14 Oct 2023 11:46:46 +1000 Subject: [PATCH] Switch Qt5 shims from opt-out to opt-in If you have an add-on that hasn't been updated yet, please contact the add-on author. You can temporarily restore functionality by defining an ENABLE_QT5_COMPAT=1 env var. --- qt/aqt/qt/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt/aqt/qt/__init__.py b/qt/aqt/qt/__init__.py index d3b1c7914..05c061b1d 100644 --- a/qt/aqt/qt/__init__.py +++ b/qt/aqt/qt/__init__.py @@ -14,9 +14,8 @@ try: except: from .qt5 import * # type: ignore else: - if not os.getenv("DISABLE_QT5_COMPAT"): + if os.getenv("ENABLE_QT5_COMPAT"): print("Running with temporary Qt5 compatibility shims.") - print("Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.") from . import qt5_compat # needs to be imported first from .qt6 import *