Skip to content

Commit

Permalink
Fix isWindowsConsole() check
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Sep 19, 2023
1 parent f215f3b commit a8755ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncplay/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
["PySide6", "PySide2", "PySide", "PyQt5", "PyQt4"]
)

if not isWindowsConsole:
if not isWindowsConsole():
try:
from syncplay.ui.gui import MainWindow as GraphicalUI
except ImportError:
Expand All @@ -15,7 +15,7 @@


def getUi(graphical=True, passedBar=None):
if graphical and not isWindowsConsole:
if graphical and not isWindowsConsole():
ui = GraphicalUI(passedBar=passedBar)
else:
ui = ConsoleUI()
Expand Down

0 comments on commit a8755ff

Please sign in to comment.