Browse Source

【主页】工具- 背景,添加文件背景时,预览图中无法直接看到背景效果 修复

lizhe 1 year ago
parent
commit
5197b6243a

+ 2 - 1
PDF Office/PDF Master/Class/PDFTools/Background/New/View/KMAddBackgroundView.swift

@@ -426,7 +426,8 @@ class KMAddBackgroundView: KMBaseXibView, NSComboBoxDelegate {
         if let color = background.color {
             tBackground.color = color
             tBackground.type = .color
-        } else if background.imagePath.count != 0 {
+        }
+        if background.imagePath.count != 0 {
             let image = NSImage(contentsOfFile: background.imagePath)!
             tBackground.setImage(image)
             tBackground.type = .image