@ -44,6 +44,8 @@ PlasmaExtras.ExpandableListItem {
readonly property double totalSpace: sdSource . data [ udi ] && sdSource . data [ udi ] [ "Size" ] ? sdSource . data [ udi ] [ "Size" ] : - 1.0
readonly property double totalSpace: sdSource . data [ udi ] && sdSource . data [ udi ] [ "Size" ] ? sdSource . data [ udi ] [ "Size" ] : - 1.0
property bool freeSpaceKnown: freeSpace > 0 && totalSpace > 0
property bool freeSpaceKnown: freeSpace > 0 && totalSpace > 0
readonly property bool isRootVolume: sdSource . data [ udi ] [ "File Path" ] ? sdSource . data [ udi ] [ "File Path" ] == "/" : false
onOperationResultChanged: {
onOperationResultChanged: {
if ( ! popupIconTimer . running ) {
if ( ! popupIconTimer . running ) {
if ( operationResult == 1 ) {
if ( operationResult == 1 ) {
@ -201,7 +203,8 @@ PlasmaExtras.ExpandableListItem {
}
}
}
}
text: {
text: {
if ( ! sdSource . data [ udi ] . Removable ) {
/ / I t ' s p o s s i b l e f o r t h e r o o t v o l u m e t o b e o n a r e m o v a b l e d i s k
if ( ! sdSource . data [ udi ] . Removable || deviceItem . isRootVolume ) {
return i18n ( "Open in File Manager" )
return i18n ( "Open in File Manager" )
} else {
} else {
var types = model [ "Device Types" ] ;
var types = model [ "Device Types" ] ;