mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Hide entire footer when the user started syncing
If they started syncing, most likely the list of printers is just complete and the user won't need this any more. Contributes to issue CURA-8609.
This commit is contained in:
parent
ccfdfe5539
commit
9c684cbc4d
1 changed files with 2 additions and 7 deletions
|
@ -385,14 +385,10 @@ Window
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
let h = UM.Theme.getSize("card").height + UM.Theme.getSize("default_margin").height; //1 margin between content and footer.
|
||||
if(printerListTroubleshooting.visible)
|
||||
{
|
||||
h += printerListTroubleshooting.height + UM.Theme.getSize("default_margin").height; //Height increases if there's a troubleshooting link.
|
||||
}
|
||||
let h = UM.Theme.getSize("card").height + printerListTroubleshooting.height + UM.Theme.getSize("default_margin").height * 2; //1 margin between content and footer, 1 for troubleshooting link.
|
||||
return h;
|
||||
}
|
||||
visible: includeOfflinePrinterList.count - cloudPrinterList.count > 0
|
||||
visible: includeOfflinePrinterList.count - cloudPrinterList.count > 0 && typeof syncModel !== "undefined" && syncModel.exportUploadStatus === "idle"
|
||||
Rectangle
|
||||
{
|
||||
anchors.fill: parent
|
||||
|
@ -445,7 +441,6 @@ Window
|
|||
id: printerListTroubleshooting
|
||||
|
||||
text: catalog.i18nc("@button", "Troubleshooting")
|
||||
visible: typeof syncModel !== "undefined" && syncModel.exportUploadStatus !== "error"
|
||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360012019239?utm_source=cura&utm_medium=software&utm_campaign=sync-material-wizard-troubleshoot-cloud-printer")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue