继续优化UI加载速度
This commit is contained in:
@@ -1220,6 +1220,10 @@ def _build_ucd_resized_image(image_path: str, target_w: int, target_h: int) -> s
|
||||
|
||||
def refresh_ai_image_theme(self: "PQAutomationApp"):
|
||||
"""刷新 AI 图片面板中的主题相关控件。"""
|
||||
if getattr(self, "current_panel", None) != "ai_image":
|
||||
self._ai_image_theme_dirty = True
|
||||
return
|
||||
self._ai_image_theme_dirty = False
|
||||
if hasattr(self, "_apply_ai_image_list_style"):
|
||||
self._apply_ai_image_list_style()
|
||||
tip = getattr(self, "_ai_image_tooltip", None)
|
||||
|
||||
Reference in New Issue
Block a user