summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediamanager
diff options
context:
space:
mode:
Diffstat (limited to 'tdeioslave/media/mediamanager')
-rw-r--r--tdeioslave/media/mediamanager/tdehardwarebackend.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
index 56eab25b2..a7cbb2260 100644
--- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
+++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
@@ -161,7 +161,7 @@ void TDEBackend::AddDevice(TDEStorageDevice * sdevice, bool allowNotification)
//
}
/* We also don't display devices that underlie other devices;
- /* e.g. the raw partition of a device mapper volume
+ * e.g. the raw partition of a device mapper volume
*/
else if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::UsedByDevice)) {
//
@@ -181,6 +181,14 @@ void TDEBackend::AddDevice(TDEStorageDevice * sdevice, bool allowNotification)
}
}
+ // Hide udev hidden devices by default but allow the user to override if desired via Show Hidden Files
+ if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hidden)) {
+ medium->setSoftHidden(true);
+ }
+ else {
+ medium->setSoftHidden(false);
+ }
+
// Insert medium into list
m_mediaList.addMedium(medium, allowNotification);