Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d1a5507b authored by Thomas Surrel's avatar Thomas Surrel

[Device Notifier] Disable the possibility to unmount the root partition

Test Plan: {F6461150}

Reviewers: #plasma, #vdg, davidedmundson, ngraham

Reviewed By: #plasma, #vdg, davidedmundson, ngraham

Subscribers: abetts, ngraham, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17402
parent cb323798
......@@ -36,6 +36,7 @@ MouseArea {
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 @@ MouseArea {
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
}
......
......@@ -168,6 +168,7 @@ MouseArea {
}
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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment