diff --git a/applets/devicenotifier/package/contents/ui/DeviceItem.qml b/applets/devicenotifier/package/contents/ui/DeviceItem.qml --- a/applets/devicenotifier/package/contents/ui/DeviceItem.qml +++ b/applets/devicenotifier/package/contents/ui/DeviceItem.qml @@ -36,6 +36,7 @@ property int state property bool mounted + property bool isRoot property bool expanded: devicenotifier.expandedDevice == udi property alias percentUsage: freeSpaceBar.value property string freeSpaceText @@ -304,6 +305,7 @@ PlasmaComponents.ToolButton { id: actionButton visible: !busyIndicator.visible && deviceItem.actionVisible + enabled: !isRoot onClicked: actionTriggered() y: mounted ? deviceLabel.height + (freeSpaceBar.height - height - units.smallSpacing) / 2 : (deviceLabel.height + actionMessage.height - height) / 2 } diff --git a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml --- a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml +++ b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml @@ -168,6 +168,7 @@ } emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" state: sdSource.data[udi] ? sdSource.data[udi].State : 0 + isRoot: sdSource.data[udi]["File Path"] == "/" percentUsage: { if (!sdSource.data[udi]) {