feat: 更新第二个按钮文字,使功能更清晰
This commit is contained in:
@@ -307,14 +307,14 @@ class CursorGUI(QMainWindow):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# 一键重置按钮
|
# 一键重置按钮
|
||||||
self.refresh_btn = QPushButton("一键重置")
|
self.refresh_btn = QPushButton("刷新Cursor授权 (对话次数用完了提示limit时点一次)")
|
||||||
self.refresh_btn.setStyleSheet(button_style)
|
self.refresh_btn.setStyleSheet(button_style)
|
||||||
self.refresh_btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
self.refresh_btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||||
self.refresh_btn.clicked.connect(self.refresh_auth)
|
self.refresh_btn.clicked.connect(self.refresh_auth)
|
||||||
layout.addWidget(self.refresh_btn)
|
layout.addWidget(self.refresh_btn)
|
||||||
|
|
||||||
# 代用2按钮
|
# 代用2按钮
|
||||||
self.patch_btn = QPushButton("代用 2")
|
self.patch_btn = QPushButton("突破0.45.x限制 (Too many free trials问题点这里)")
|
||||||
self.patch_btn.setStyleSheet(button_style)
|
self.patch_btn.setStyleSheet(button_style)
|
||||||
self.patch_btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
self.patch_btn.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||||
self.patch_btn.clicked.connect(self.install_patch)
|
self.patch_btn.clicked.connect(self.install_patch)
|
||||||
@@ -457,7 +457,7 @@ class CursorGUI(QMainWindow):
|
|||||||
finally:
|
finally:
|
||||||
# 恢复按钮状态
|
# 恢复按钮状态
|
||||||
self.refresh_btn.setEnabled(True)
|
self.refresh_btn.setEnabled(True)
|
||||||
self.refresh_btn.setText("一键重置")
|
self.refresh_btn.setText("刷新Cursor授权 (对话次数用完了提示limit时点一次)")
|
||||||
else:
|
else:
|
||||||
QMessageBox.warning(self, "取消", "重置操作已取消")
|
QMessageBox.warning(self, "取消", "重置操作已取消")
|
||||||
|
|
||||||
@@ -490,7 +490,7 @@ class CursorGUI(QMainWindow):
|
|||||||
finally:
|
finally:
|
||||||
# 恢复按钮状态
|
# 恢复按钮状态
|
||||||
self.patch_btn.setEnabled(True)
|
self.patch_btn.setEnabled(True)
|
||||||
self.patch_btn.setText("代用 2")
|
self.patch_btn.setText("突破0.45.x限制 (Too many free trials问题点这里)")
|
||||||
else:
|
else:
|
||||||
QMessageBox.warning(self, "取消", "安装操作已取消")
|
QMessageBox.warning(self, "取消", "安装操作已取消")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user