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()
|
||||
|
||||
@@ -25,7 +25,7 @@ class MainWindow(QMainWindow):
|
||||
or self.config.get("ai_models_path")
|
||||
or appconfig.AI_MODELS_PATH
|
||||
)
|
||||
self.setWindowTitle("cmshopee")
|
||||
self.setWindowTitle("蝦皮圈優化助手")
|
||||
self.resize(1180, 760)
|
||||
self.setStyleSheet(BUTTON_BASE_STYLE)
|
||||
self._settings_tab_index = TAB_TITLES.index("⑤ 设置")
|
||||
|
||||
Reference in New Issue
Block a user