QmlDesigner: Fix error code in share dialog

* Add special text for error codes smaller 100
* Remove unused tool tip

Task-number: QDS-14354
Change-Id: I6e313ea1928ee86aef73a0e5019ecf2112f2baa3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2024-12-11 15:03:34 +01:00
committed by Henning Gründl
parent 094379e2ce
commit e8c4e73de4
2 changed files with 4 additions and 6 deletions

View File

@@ -473,7 +473,10 @@ Rectangle {
function onProjectUploadError(errorCode: int, message: string) {
shareNotification.type = ShareNotification.NotificationType.Error
shareNotification.setHelperText(qsTr("Upload failed (" + errorCode + ")."))
if (errorCode < 100)
shareNotification.setHelperText(qsTr("Upload failed. Please check your internet connection."))
else
shareNotification.setHelperText(qsTr("Upload failed (" + errorCode + ")."))
shareMenuItem.enabled = true
}

View File

@@ -76,11 +76,6 @@ Item {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
StudioControls.ToolTipArea {
anchors.fill: parent
text: qsTr("This can be your message.")
}
}
}