Honor disk hidden flag when handling device insertion notifiers

This relates to Bug 2211
pull/2/head
Timothy Pearson 9 years ago
parent 70a56d09e0
commit 5ab19b14bd

@ -415,6 +415,9 @@ void DevicePropertiesDialog::populateDeviceInformation() {
if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
status_text += "Hotpluggable<br>";
}
if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hidden)) {
status_text += "Hidden<br>";
}
if (status_text == "<qt>") {
status_text += "<i>Unavailable</i>";
}

@ -140,6 +140,12 @@ void TDEBackend::AddDevice(TDEStorageDevice * sdevice, bool allowNotification)
return;
}
// Respect the device's hidden flag--we will still make the device available via the tdeioslave
// but we will not generate popups or other notifications on device insertion
if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hidden)) {
allowNotification = false;
}
// Add volume block devices
if (sdevice->isDiskOfType(TDEDiskDeviceType::HDD)) {
/* We only list volumes that...

Loading…
Cancel
Save