feat(gui): hide AI studio tab
This commit is contained in:
@@ -166,13 +166,15 @@ class MainWindow(QMainWindow):
|
||||
ai_models_path=self.ai_models_path,
|
||||
status_callback=self.show_status,
|
||||
)
|
||||
return ImageStudioTab(
|
||||
db_path=self.db_path,
|
||||
config=self.config,
|
||||
config_path=self.config_path,
|
||||
status_callback=self.show_status,
|
||||
prompts_dir=appconfig.image_studio_prompts_dir(self.config),
|
||||
)
|
||||
if title == "⑥ AI工场":
|
||||
return ImageStudioTab(
|
||||
db_path=self.db_path,
|
||||
config=self.config,
|
||||
config_path=self.config_path,
|
||||
status_callback=self.show_status,
|
||||
prompts_dir=appconfig.image_studio_prompts_dir(self.config),
|
||||
)
|
||||
raise ValueError(f"未知主界面模块:{title}")
|
||||
|
||||
def refresh_task_tabs(self):
|
||||
for index in range(self.tabs.count()):
|
||||
|
||||
@@ -60,7 +60,6 @@ TAB_TITLES = [
|
||||
"③ 更新蝦皮",
|
||||
"④ 账号管理",
|
||||
"⑤ 设置",
|
||||
"⑥ AI工场",
|
||||
]
|
||||
|
||||
TAB_STYLE = """
|
||||
|
||||
Reference in New Issue
Block a user