feat(gui): replace AI studio with product suite
This commit is contained in:
@@ -7,7 +7,7 @@ from .tabs.accounts import AccountsTab
|
||||
from .tabs.apply import ApplyTab
|
||||
from .tabs.collect import CollectTab
|
||||
from .tabs.generate import GenerateTab
|
||||
from .tabs.image_studio import ImageStudioTab
|
||||
from .tabs.product_suite import ProductSuiteTab
|
||||
from .tabs.settings import SettingsTab
|
||||
from .widgets import *
|
||||
|
||||
@@ -166,13 +166,12 @@ class MainWindow(QMainWindow):
|
||||
ai_models_path=self.ai_models_path,
|
||||
status_callback=self.show_status,
|
||||
)
|
||||
if title == "⑥ AI工场":
|
||||
return ImageStudioTab(
|
||||
if title == "⑥ 商品套图":
|
||||
return ProductSuiteTab(
|
||||
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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user