diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 7c10054..ca0f5d4 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -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)