Skip to content

Commit

Permalink
Fix ArchLinux GUI TypeError (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Apr 11, 2023
1 parent 3210cd4 commit b62b038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,10 @@ def __init__(self, passedBar=None):
if isMacOS():
self.setWindowFlags(self.windowFlags())
else:
self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
try:
self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
except TypeError:
self.setWindowFlags(self.windowFlags())
self.setWindowTitle("Syncplay v" + version + revision)
self.mainLayout = QtWidgets.QVBoxLayout()
self.addTopLayout(self)
Expand Down

0 comments on commit b62b038

Please sign in to comment.