chore: rebrand display name for T-537

This commit is contained in:
chengma
2026-07-07 09:52:51 +08:00
parent 454c74336b
commit fd42814ac0
18 changed files with 36 additions and 22 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ if QT_IMPORT_ERROR is None:
else:
class MainWindow(QMainWindow):
def __init__(self):
raise RuntimeError("PySide6 未安装,无法启动 GUI")
raise RuntimeError("蝦皮圈優化助手 GUI 无法启动:当前 Python 环境未安装 PySide6。")
def _ensure_offscreen_for_headless_tests():
@@ -42,10 +42,10 @@ def _ensure_offscreen_for_headless_tests():
def main() -> int:
if QT_IMPORT_ERROR is not None:
print("cmshopee GUI 无法启动:当前 Python 环境未安装 PySide6。")
print("蝦皮圈優化助手 GUI 无法启动:当前 Python 环境未安装 PySide6。")
return 1
_ensure_offscreen_for_headless_tests()
app = QApplication.instance() or QApplication(sys.argv)
window = MainWindow()
window.show()
return app.exec()
return app.exec()