Index: sources/gui/qml/components/USBButton.qml =================================================================== diff -u -r56e378f7504701b9e9a9dccaf205aef2fd52c58e -r73091a6f5717c0fc88e236c06c618ad361f30a3c --- sources/gui/qml/components/USBButton.qml (.../USBButton.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) +++ sources/gui/qml/components/USBButton.qml (.../USBButton.qml) (revision 73091a6f5717c0fc88e236c06c618ad361f30a3c) @@ -24,30 +24,16 @@ width: 50 height: width x: width - 10 - animated: true - loops: Animation.Infinite - duration: 1000 // 1 sec - text.text: qsTr("USB") text.font.pixelSize: Fonts.fontPixelButton * 0.75 - button.onPressed: { + onPressed: { _GuiView.doUSBDriveUmount() - animate(true) } Connections { target: _GuiView - onDidUSBDriveRemove: { - _root.animate(false) - _root.disabled = true - } - onDidUSBDriveMount: { - _root.disabled = false - } - onDidExportLog: { - _root.disabled = true - } - onDidExport: { - _root.disabled = false - } + onDidUSBDriveRemove : _root.enabled = false + onDidUSBDriveMount : _root.enabled = true + onDidExportLog : _root.enabled = false + onDidExport : _root.enabled = true } }