Просмотр исходного кода

remove pattern preview for testing

tuanchris 4 месяцев назад
Родитель
Сommit
d7eb75d568

+ 2 - 2
dune-weaver-touch/qml/components/ModernPatternCard.qml

@@ -56,9 +56,9 @@ Rectangle {
                 id: previewImage
                 anchors.fill: parent
                 fillMode: Image.PreserveAspectFit
-                source: preview ? "file:///" + preview : ""
+                source: "" // Disabled to prevent WebP decoding errors on touch display
                 smooth: true
-                
+
                 // Loading animation
                 opacity: status === Image.Ready ? 1 : 0
                 Behavior on opacity {

+ 1 - 17
dune-weaver-touch/qml/pages/ExecutionPage.qml

@@ -349,23 +349,7 @@ Page {
                     Image {
                         anchors.fill: parent
                         anchors.margins: 10
-                        source: {
-                            var finalSource = ""
-                            
-                            // Try different sources in priority order
-                            if (patternPreview) {
-                                finalSource = "file:///" + patternPreview
-                                console.log("🖼️ Using patternPreview:", finalSource)
-                            } else if (activeImageSource) {
-                                // Use the activeImageSource to avoid binding loops
-                                finalSource = activeImageSource
-                                console.log("🖼️ Using activeImageSource:", finalSource)
-                            } else {
-                                console.log("🖼️ No preview source available")
-                            }
-                            
-                            return finalSource
-                        }
+                        source: "" // Disabled to prevent WebP decoding errors on touch display
                         fillMode: Image.PreserveAspectFit
                         
                         onStatusChanged: {