feat(ai-studio): add main workspace tab
This commit is contained in:
+12
-3
@@ -7,6 +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.settings import SettingsTab
|
||||
from .widgets import *
|
||||
|
||||
@@ -72,7 +73,7 @@ def _fit_and_center_window(
|
||||
|
||||
|
||||
class MainWindow(QMainWindow):
|
||||
"""Main application window with the fixed five-tab workflow."""
|
||||
"""Main application window with the fixed workflow tabs."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -158,11 +159,19 @@ class MainWindow(QMainWindow):
|
||||
config=self.config,
|
||||
status_callback=self.show_status,
|
||||
)
|
||||
return SettingsTab(
|
||||
if title == "⑤ 设置":
|
||||
return SettingsTab(
|
||||
config=self.config,
|
||||
config_path=self.config_path,
|
||||
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,
|
||||
ai_models_path=self.ai_models_path,
|
||||
status_callback=self.show_status,
|
||||
prompts_dir=appconfig.image_studio_prompts_dir(self.config),
|
||||
)
|
||||
|
||||
def refresh_task_tabs(self):
|
||||
|
||||
Reference in New Issue
Block a user