Index: sources/gui/qml/components/ExportButton.qml =================================================================== diff -u -r56e378f7504701b9e9a9dccaf205aef2fd52c58e -r73091a6f5717c0fc88e236c06c618ad361f30a3c --- sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) +++ sources/gui/qml/components/ExportButton.qml (.../ExportButton.qml) (revision 73091a6f5717c0fc88e236c06c618ad361f30a3c) @@ -21,32 +21,22 @@ import "qrc:/components" TouchRect { id : _root - width: 50 - height: width - x: width - 10 - animated: true - text.text: qsTr("Export") - text.font.pixelSize: Fonts.fontPixelButton * 0.75 - button.onPressed: { + width : 50 + height : width + x : width - 10 + text { + text: qsTr("Export") + font.pixelSize: Fonts.fontPixelButton * 0.75 + } + onPressed: { _GuiView.doExportLog() } Connections { target: _GuiView - onDidUSBDriveUmount: { - _root.disabled = true - } - onDidUSBDriveRemove: { - //_root.animate(false) - _root.disabled = true - } - onDidUSBDriveMount: { - _root.disabled = false - } - onDidExportLog: { - _root.disabled = true - } - onDidExport: { - _root.disabled = false - } + onDidUSBDriveUmount : _root.enabled = false + onDidUSBDriveRemove : _root.enabled = false + onDidUSBDriveMount : _root.enabled = true + onDidExportLog : _root.enabled = false + onDidExport : _root.enabled = true } }