mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 07:49:04 +08:00
Simplify the DiscoveredUltimakerCloudPrintersModel reference calls
CURA-7022
This commit is contained in:
parent
d6f150a523
commit
411a02a827
@ -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…
x
Reference in New Issue
Block a user