Set support page to be opened on core incompatibility

CURA-12393
This commit is contained in:
Erwan MATHIEU 2025-02-07 15:56:30 +01:00
parent 53f4046a51
commit 686b404a95

View File

@ -166,8 +166,8 @@ Button
} }
mismatchedCores = "<b>" + mismatchedCores + "</b>" mismatchedCores = "<b>" + mismatchedCores + "</b>"
var draftResult = catalog.i18nc("@label", "This configuration is not available because there is a mismatch or other problem with core-type %1. Please visit %2 to check which cores this printer-type supports w.r.t. new slices."); var draftResult = catalog.i18nc("@label", "This configuration is not available because there is a mismatch or other problem with core-type %1. Please visit <a href='%2'>the support page</a> to check which cores this printer-type supports w.r.t. new slices.");
return draftResult.arg(mismatchedCores).arg("<a href=' '>" + catalog.i18nc("@label","WEBSITE") + "</a> ") return draftResult.arg(mismatchedCores).arg("https://support.ultimaker.com/s/article/1667411313529")
} }
text: text:
@ -199,9 +199,16 @@ Button
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
onLinkActivated: onLinkActivated: (link) =>
{ {
Cura.Actions.browsePackages.trigger() if(link.trim().length === 0)
{
Cura.Actions.browsePackages.trigger();
}
else
{
Qt.openUrlExternally(link);
}
} }
} }