chore: rebrand display name for T-537
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user