mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-31 11:11:33 +00:00
Improved About menu appeareance on Windows
This commit is contained in:
parent
925ddb394c
commit
cf1e739a48
@ -101,6 +101,8 @@ class AboutDialog(QtWidgets.QDialog):
|
||||
self.setWindowTitle("")
|
||||
else:
|
||||
self.setWindowTitle("About Syncplay")
|
||||
if sys.platform.startswith('win'):
|
||||
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
|
||||
nameLabel = QtWidgets.QLabel("<center><strong>Syncplay</strong></center>")
|
||||
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
||||
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
||||
@ -1437,9 +1439,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
|
||||
window.helpMenu = QtWidgets.QMenu(getMessage("help-menu-label"), self)
|
||||
|
||||
window.about = window.helpMenu.addAction("&About")
|
||||
window.about.triggered.connect(self.openAbout)
|
||||
|
||||
window.userguideAction = window.helpMenu.addAction(QtGui.QPixmap(self.resourcespath + 'help.png'),
|
||||
getMessage("userguide-menu-label"))
|
||||
window.userguideAction.triggered.connect(self.openUserGuide)
|
||||
@ -1447,6 +1446,14 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
getMessage("update-menu-label"))
|
||||
window.updateAction.triggered.connect(self.userCheckForUpdates)
|
||||
|
||||
if not sys.platform.startswith('darwin'):
|
||||
window.helpMenu.addSeparator()
|
||||
window.about = window.helpMenu.addAction(QtGui.QPixmap(self.resourcespath + 'syncplay.png'),
|
||||
'About Syncplay')
|
||||
else:
|
||||
window.about = window.helpMenu.addAction("&About")
|
||||
window.about.triggered.connect(self.openAbout)
|
||||
|
||||
window.menuBar.addMenu(window.helpMenu)
|
||||
if not sys.platform.startswith('darwin'):
|
||||
window.mainLayout.setMenuBar(window.menuBar)
|
||||
|
Loading…
Reference in New Issue
Block a user