Browse Source

Workaround for ListView-cache-bug in Qt. [CURA-6435]

Remco Burema 5 years ago
parent
commit
5c28de05e1

+ 2 - 0
resources/qml/WelcomePages/AddLocalPrinterScrollView.qml

@@ -85,6 +85,8 @@ Item
             {
                 id: machineList
 
+                cacheBuffer: 0  // Workaround for https://bugreports.qt.io/browse/QTBUG-49224
+
                 model: UM.DefinitionContainersModel
                 {
                     id: machineDefinitionsModel

+ 2 - 0
resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml

@@ -72,6 +72,8 @@ Item
                 section.criteria: ViewSection.FullString
                 section.delegate: sectionHeading
 
+                cacheBuffer: 0  // Workaround for https://bugreports.qt.io/browse/QTBUG-49224
+
                 Component.onCompleted:
                 {
                     // Select the first one that's not "unknown" by default.