diff --git a/Telegram/build/qt_version.py b/Telegram/build/qt_version.py index 0f1bf164b..1703e15d0 100644 --- a/Telegram/build/qt_version.py +++ b/Telegram/build/qt_version.py @@ -10,8 +10,7 @@ def resolve(arch): elif os.environ.get('QT') is None: print('Choosing Qt 5.') os.environ['QT'] = '5.15.13' - else: - print('Choosing Qt ' + os.environ.get('QT')) - else: + elif os.environ.get('QT') is None: return False + print('Choosing Qt ' + os.environ.get('QT')) return True diff --git a/Telegram/configure.py b/Telegram/configure.py index a5819f222..f31dd70a7 100644 --- a/Telegram/configure.py +++ b/Telegram/configure.py @@ -46,7 +46,7 @@ elif officialTarget in ['win64', 'uwp64']: elif officialTarget in ['winarm', 'uwparm']: arch = 'arm' if not qt_version.resolve(arch): - error('Usupported platform.') + error('Unsupported platform.') if 'qt6' in arguments: arguments.remove('qt6')