mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Simplify the DiscoveredUltimakerCloudPrintersModel reference calls
CURA-7022
This commit is contained in:
parent
d6f150a523
commit
411a02a827
1 changed files with 3 additions and 5 deletions
|
@ -19,8 +19,6 @@ Item
|
|||
{
|
||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
||||
|
||||
id: addCloudPrinterScreen
|
||||
|
||||
property bool searchingForCloudPrinters: true
|
||||
property var discoveredCloudPrintersModel: CuraApplication.getDiscoveredUltimakerCloudPrintersModel()
|
||||
|
||||
|
@ -75,7 +73,7 @@ Item
|
|||
font: UM.Theme.getFont("large")
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
visible: addCloudPrinterScreen.discoveredCloudPrintersModel.count == 0
|
||||
visible: discoveredCloudPrintersModel.count == 0
|
||||
}
|
||||
|
||||
// Label displayed when a new cloud printer is discovered
|
||||
|
@ -87,7 +85,7 @@ Item
|
|||
font: UM.Theme.getFont("medium")
|
||||
text: catalog.i18nc("@label", "The following printers in your account have been added in Cura:")
|
||||
height: contentHeight + 2 * UM.Theme.getSize("default_margin").height
|
||||
visible: addCloudPrinterScreen.discoveredCloudPrintersModel.count > 0
|
||||
visible: discoveredCloudPrintersModel.count > 0
|
||||
}
|
||||
|
||||
// The scrollView that contains the list of newly discovered Ultimaker Cloud printers. Visible only when
|
||||
|
@ -117,7 +115,7 @@ Item
|
|||
Repeater
|
||||
{
|
||||
id: discoveredCloudPrintersRepeater
|
||||
model: addCloudPrinterScreen.discoveredCloudPrintersModel
|
||||
model: discoveredCloudPrintersModel
|
||||
delegate: Item
|
||||
{
|
||||
width: discoveredCloudPrintersScrollView.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue