Fix ArchLinux GUI TypeError (#600)
This commit is contained in:
parent
3210cd4449
commit
b62b038cdf
@ -2106,7 +2106,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
if isMacOS():
|
if isMacOS():
|
||||||
self.setWindowFlags(self.windowFlags())
|
self.setWindowFlags(self.windowFlags())
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
|
self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
|
||||||
|
except TypeError:
|
||||||
|
self.setWindowFlags(self.windowFlags())
|
||||||
self.setWindowTitle("Syncplay v" + version + revision)
|
self.setWindowTitle("Syncplay v" + version + revision)
|
||||||
self.mainLayout = QtWidgets.QVBoxLayout()
|
self.mainLayout = QtWidgets.QVBoxLayout()
|
||||||
self.addTopLayout(self)
|
self.addTopLayout(self)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user