Show browser error messages to the user when available
This commit is contained in:
parent
2fd696eae5
commit
af7a3bd861
@ -76,7 +76,11 @@ Page {
|
|||||||
if (params.status !== "success") {
|
if (params.status !== "success") {
|
||||||
header.showInfo(params.error, true);
|
header.showInfo(params.error, true);
|
||||||
} else if (params.params.deviceError !== "DeviceErrorNoError") {
|
} else if (params.params.deviceError !== "DeviceErrorNoError") {
|
||||||
header.showInfo(qsTr("Error: %1").arg(params.params.deviceError), true)
|
if (params.params.displayMessage.length > 0) {
|
||||||
|
header.showInfo(qsTr("Error: %1").arg(params.params.displayMessage), true)
|
||||||
|
} else {
|
||||||
|
header.showInfo(qsTr("Error: %1").arg(params.params.deviceError), true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
engine.deviceManager.refreshBrowserItems(d.model)
|
engine.deviceManager.refreshBrowserItems(d.model)
|
||||||
|
|||||||
Reference in New Issue
Block a user