chore: add ruff checks

This commit is contained in:
chengma
2026-07-07 15:11:40 +08:00
parent 862f791fde
commit 6e2347e1c8
13 changed files with 81 additions and 16 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ class MainWindow(QMainWindow):
box.setText("⑤ 设置有未保存更改。要先保存再离开吗?")
save_button = box.addButton("保存", QMessageBox.AcceptRole)
discard_button = box.addButton("放弃", QMessageBox.DestructiveRole)
cancel_button = box.addButton("取消", QMessageBox.RejectRole)
box.addButton("取消", QMessageBox.RejectRole)
box.setDefaultButton(save_button)
box.exec()
clicked = box.clickedButton()