Prevent the Networked printer scrollview from slowing shit down when it's not even visible

This commit is contained in:
Jaime van Kessel 2020-01-03 17:29:04 +01:00
parent 1b1c7b78aa
commit 6a5fbba519
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 2 additions and 1 deletions

View file

@ -66,7 +66,7 @@ Item
{
id: networkPrinterListView
anchors.fill: parent
model: CuraApplication.getDiscoveredPrintersModel().discoveredPrinters
model: contentLoader.enabled ? CuraApplication.getDiscoveredPrintersModel().discoveredPrinters: undefined
section.property: "modelData.sectionName"
section.criteria: ViewSection.FullString

View file

@ -71,6 +71,7 @@ Item
right: parent.right
}
source: base.pageUrl
enabled: base.visible
}
}
}