932fb58c by 柴进

处理mac打包后粘贴图片缩略图不可见的问题

1 parent b3174d37
...@@ -1941,11 +1941,12 @@ class ImageGeneratorWindow(QMainWindow): ...@@ -1941,11 +1941,12 @@ class ImageGeneratorWindow(QMainWindow):
1941 1941
1942 if success and temp_file_path.exists(): 1942 if success and temp_file_path.exists():
1943 self.uploaded_images.append(str(temp_file_path)) 1943 self.uploaded_images.append(str(temp_file_path))
1944 self.update_image_preview()
1945 self.image_count_label.setText(f"已选择 {len(self.uploaded_images)} 张") 1944 self.image_count_label.setText(f"已选择 {len(self.uploaded_images)} 张")
1946 self.status_label.setText("● 已添加剪贴板图片") 1945 self.status_label.setText("● 已添加剪贴板图片")
1947 self.status_label.setStyleSheet("QLabel { color: #34C759; }") 1946 self.status_label.setStyleSheet("QLabel { color: #34C759; }")
1948 self.logger.info(f"剪贴板图片已成功保存到: {temp_file_path}") 1947 self.logger.info(f"剪贴板图片已成功保存到: {temp_file_path}")
1948 # 延迟到下一个事件循环刷新预览,避免 macOS 剪贴板上下文阻塞 UI 更新
1949 QTimer.singleShot(0, self.update_image_preview)
1949 1950
1950 # 检查极速模式下的多图限制 1951 # 检查极速模式下的多图限制
1951 # self.check_multi_image_mode_conflict() 1952 # self.check_multi_image_mode_conflict()
......