修改UI细节错误
This commit is contained in:
@@ -415,9 +415,7 @@ def toggle_ai_image_panel(self: "PQAutomationApp"):
|
||||
self.show_panel("ai_image")
|
||||
_apply_ai_image_list_style(self)
|
||||
if not getattr(self, "_ai_image_list_loaded", False):
|
||||
logger.info("[AIImagePanel] 首次显示面板,开始加载列表")
|
||||
reload_ai_image_list(self)
|
||||
self._ai_image_list_loaded = True
|
||||
_start_new_session(self)
|
||||
|
||||
|
||||
def _get_app_base_dir(self: "PQAutomationApp") -> str:
|
||||
@@ -618,7 +616,6 @@ def _on_list_select(self: "PQAutomationApp"):
|
||||
if getattr(self, "_ai_image_reloading", False):
|
||||
return
|
||||
if getattr(self, "_ai_image_select_guard", False):
|
||||
logger.debug("[AIImagePanel] 忽略重入选择事件")
|
||||
return
|
||||
sel = self.ai_image_tree.selection()
|
||||
if not sel:
|
||||
@@ -631,7 +628,6 @@ def _on_list_select(self: "PQAutomationApp"):
|
||||
if ridx is None:
|
||||
session_id = _session_id_for_item(self, item_id)
|
||||
if session_id:
|
||||
logger.info("[AIImagePanel] 选中会话头 sid=%s", session_id[:8])
|
||||
_switch_to_session(self, session_id, show_message=False, refresh_list=False)
|
||||
return
|
||||
if 0 <= ridx < len(self.ai_image_records):
|
||||
@@ -848,7 +844,7 @@ def _switch_to_session(
|
||||
if sid == _svc.get_session_id():
|
||||
return
|
||||
_svc.set_session_id(sid)
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"[AIImagePanel] 切换会话 sid=%s refresh=%s target=%s",
|
||||
sid[:8],
|
||||
refresh_list,
|
||||
|
||||
Reference in New Issue
Block a user