Index: sources/gui/qml/components/USBButton.qml =================================================================== diff -u -r73091a6f5717c0fc88e236c06c618ad361f30a3c -r1a8e9578b27bb3877116675d0b2361ce4f5b5539 --- sources/gui/qml/components/USBButton.qml (.../USBButton.qml) (revision 73091a6f5717c0fc88e236c06c618ad361f30a3c) +++ sources/gui/qml/components/USBButton.qml (.../USBButton.qml) (revision 1a8e9578b27bb3877116675d0b2361ce4f5b5539) @@ -24,12 +24,19 @@ width: 50 height: width x: width - 10 - text.text: qsTr("USB") + Image { id: _image + width : Variables.iconsDiameter + height : Variables.iconsDiameter + anchors.centerIn: parent + source : "qrc:/images/iEject" + } text.font.pixelSize: Fonts.fontPixelButton * 0.75 - onPressed: { + onPressed : { _GuiView.doUSBDriveUmount() } + fading: ! _GuiView.usbReady && ! _GuiView.usbRemoved + Connections { target: _GuiView onDidUSBDriveRemove : _root.enabled = false onDidUSBDriveMount : _root.enabled = true