优化UI加载速度
This commit is contained in:
@@ -163,7 +163,7 @@ def _on_tree_motion(self: "PQAutomationApp", event):
|
||||
|
||||
def create_ai_image_panel(self: "PQAutomationApp"):
|
||||
"""创建 AI 图片对话面板,并注册到面板管理。"""
|
||||
frame = ttk.Frame(self.content_frame)
|
||||
frame = ttk.Frame(self.view_stack)
|
||||
self.ai_image_frame = frame
|
||||
|
||||
# 内部状态
|
||||
@@ -413,9 +413,9 @@ def create_ai_image_panel(self: "PQAutomationApp"):
|
||||
def toggle_ai_image_panel(self: "PQAutomationApp"):
|
||||
"""切换 AI 图片面板显隐。"""
|
||||
self.show_panel("ai_image")
|
||||
_apply_ai_image_list_style(self)
|
||||
self.root.after_idle(lambda: _apply_ai_image_list_style(self))
|
||||
if not getattr(self, "_ai_image_list_loaded", False):
|
||||
_start_new_session(self)
|
||||
self.root.after_idle(lambda: _start_new_session(self))
|
||||
|
||||
|
||||
def _get_app_base_dir(self: "PQAutomationApp") -> str:
|
||||
|
||||
Reference in New Issue
Block a user