QML UI: small fix and whitespace cleanup

In the JS code we should use assignment with '='.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-06-13 00:54:21 -07:00
parent 8cd711f8e2
commit fb2638b3fb

View file

@ -92,18 +92,18 @@ Kirigami.Page {
Button { Button {
text: qsTr("Download") text: qsTr("Download")
onClicked: { onClicked: {
text: qsTr("Retry") text = qsTr("Retry")
if (downloadThread.deviceData.bluetoothMode) { if (downloadThread.deviceData.bluetoothMode) {
var addr = downloadThread.data().getDetectedDeviceAddress(comboVendor.currentText, var addr = downloadThread.data().getDetectedDeviceAddress(comboVendor.currentText,
comboProduct.currentText) comboProduct.currentText)
if (addr !== "") if (addr !== "")
downloadThread.deviceData.devName = addr downloadThread.deviceData.devName = addr
var vendor = downloadThread.deviceData.getDeviceDescriptorVendor(comboVendor.currentText, var vendor = downloadThread.deviceData.getDeviceDescriptorVendor(comboVendor.currentText,
comboProduct.currentText) comboProduct.currentText)
downloadThread.deviceData.vendor = vendor; downloadThread.deviceData.vendor = vendor;
var product = downloadThread.deviceData.getDeviceDescriptorProduct(comboVendor.currentText, var product = downloadThread.deviceData.getDeviceDescriptorProduct(comboVendor.currentText,
comboProduct.currentText) comboProduct.currentText)
downloadThread.deviceData.product = product; downloadThread.deviceData.product = product;
} }
manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.devName) manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.devName)