use Close button in about dialog instead of Ok
This commit is contained in:
@@ -44,8 +44,8 @@ class AboutDialog(QDialog):
|
||||
self.layout.addWidget(tabs)
|
||||
|
||||
buttons = QDialogButtonBox(self)
|
||||
buttons.setStandardButtons(QDialogButtonBox.StandardButton.Ok)
|
||||
buttons.accepted.connect(self.close)
|
||||
buttons.setStandardButtons(QDialogButtonBox.StandardButton.Close)
|
||||
buttons.rejected.connect(self.close)
|
||||
self.layout.addWidget(buttons)
|
||||
|
||||
def _about(self) -> QWidget:
|
||||
|
||||
Reference in New Issue
Block a user