Fix ArchLinux GUI TypeError (#600)

This commit is contained in:
Etoh 2023-04-11 20:22:52 +01:00 committed by GitHub
parent 3210cd4449
commit b62b038cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -2106,7 +2106,10 @@ class MainWindow(QtWidgets.QMainWindow):
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)