Fix the about dialog.
This commit is contained in:
parent
0ee7d2e92f
commit
b8a96ada1f
@ -255,8 +255,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
'© 2011-2020 %s <<a href="mailto:%s">%s</a>>'
|
'© 2011-2020 %s <<a href="mailto:%s">%s</a>>'
|
||||||
% (AUTHOR, AUTHOR_MAIL, AUTHOR_MAIL),
|
% (AUTHOR, AUTHOR_MAIL, AUTHOR_MAIL),
|
||||||
'',
|
'',
|
||||||
'Running with %s' % ('PySide' if qt_compat.uses_pyside
|
'Running with PySide6',
|
||||||
else 'PyQt4'),
|
|
||||||
'',
|
'',
|
||||||
'WeeChat site: <a href="%s">%s</a>'
|
'WeeChat site: <a href="%s">%s</a>'
|
||||||
% (WEECHAT_SITE, WEECHAT_SITE),
|
% (WEECHAT_SITE, WEECHAT_SITE),
|
||||||
@ -554,11 +553,15 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
config.write(self.config)
|
config.write(self.config)
|
||||||
QtWidgets.QMainWindow.closeEvent(self, event)
|
QtWidgets.QMainWindow.closeEvent(self, event)
|
||||||
|
|
||||||
|
def main():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
app.setStyle(QtWidgets.QStyleFactory.create('Cleanlooks'))
|
app.setStyle(QtWidgets.QStyleFactory.create('Cleanlooks'))
|
||||||
app.setWindowIcon(QtGui.QIcon(
|
app.setWindowIcon(QtGui.QIcon(
|
||||||
resource_filename(__name__, 'data/icons/weechat.png')))
|
resource_filename(__name__, 'data/icons/weechat.png')))
|
||||||
main = MainWindow()
|
main = MainWindow()
|
||||||
main.show()
|
main.show()
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user