mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 01:04:35 +08:00
Only show troubleshooting link if there is an error
And show it next to the error. Contributes to issue CURA-8609.
This commit is contained in:
parent
cf860829c7
commit
c2057c94db
@ -231,15 +231,34 @@ Window
|
|||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
Layout.preferredWidth: parent.width
|
||||||
|
Layout.preferredHeight: contentRect.height
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: syncStatusLabel
|
id: syncStatusLabel
|
||||||
|
|
||||||
|
width: parent.width - UM.Theme.getSize("default_margin").width - troubleshootingLink.width
|
||||||
|
anchors.verticalCenter: troubleshootingLink.verticalCenter
|
||||||
|
|
||||||
|
elide: Text.ElideRight
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
text: ""
|
text: ""
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("medium")
|
font: UM.Theme.getFont("medium")
|
||||||
}
|
}
|
||||||
|
Cura.TertiaryButton
|
||||||
|
{
|
||||||
|
id: troubleshootingLink
|
||||||
|
text: catalog.i18nc("@button", "Troubleshooting")
|
||||||
|
visible: typeof syncModel !== "undefined" && syncModel.exportUploadStatus == "error"
|
||||||
|
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||||
|
Layout.preferredHeight: height
|
||||||
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
id: printerListScrollView
|
id: printerListScrollView
|
||||||
@ -416,13 +435,6 @@ Window
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Cura.TertiaryButton
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@button", "Troubleshooting")
|
|
||||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
|
||||||
Layout.preferredHeight: height
|
|
||||||
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")
|
|
||||||
}
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user