Fix isWindowsConsole() check

This commit is contained in:
Etoh 2023-09-19 20:06:43 +01:00 committed by GitHub
parent f215f3bffa
commit a8755ffd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ if "QT_PREFERRED_BINDING" not in os.environ:
["PySide6", "PySide2", "PySide", "PyQt5", "PyQt4"]
)
if not isWindowsConsole:
if not isWindowsConsole():
try:
from syncplay.ui.gui import MainWindow as GraphicalUI
except ImportError:
@ -15,7 +15,7 @@ from syncplay.ui.consoleUI import ConsoleUI
def getUi(graphical=True, passedBar=None):
if graphical and not isWindowsConsole:
if graphical and not isWindowsConsole():
ui = GraphicalUI(passedBar=passedBar)
else:
ui = ConsoleUI()