diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-28 11:18:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-28 12:08:35 +0900 |
commit | 55af17246cb69b20ebb560ce32b033b1b4823c04 (patch) | |
tree | 3836bcba20e144bd7eb7842beca02add60482308 /kcontrol/hwmanager/hwdevicetray.cpp | |
parent | c4a6487c827add9382001ff1892b8fb3bfa94682 (diff) | |
download | tdebase-55af17246cb69b20ebb560ce32b033b1b4823c04.tar.gz tdebase-55af17246cb69b20ebb560ce32b033b1b4823c04.zip |
Remove usage of TDEDiskDeviceStatus::Hotpluggable
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.cpp')
-rw-r--r-- | kcontrol/hwmanager/hwdevicetray.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kcontrol/hwmanager/hwdevicetray.cpp b/kcontrol/hwmanager/hwdevicetray.cpp index 4f4393e7e..7d5048c55 100644 --- a/kcontrol/hwmanager/hwdevicetray.cpp +++ b/kcontrol/hwmanager/hwdevicetray.cpp @@ -426,8 +426,7 @@ void HwDeviceSystemTray::contextMenuAboutToShow(TDEPopupMenu *menu) (*rmbMenuEntries[SDActions::Open])[deviceLabel] = sdevice; } - if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable) || - sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) + if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable)) { (*rmbMenuEntries[SDActions::Eject])[deviceLabel] = sdevice; @@ -487,8 +486,7 @@ void HwDeviceSystemTray::populateLMBMenu() (sdevice->isDiskOfType(TDEDiskDeviceType::LUKS) || sdevice->isDiskOfType(TDEDiskDeviceType::OtherCrypted) || sdevice->checkDiskStatus(TDEDiskDeviceStatus::Mountable) || - sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable) || - sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable))) + sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable))) { TQString deviceLabel = getDeviceLabel(sdevice); TDEActionMenu *actionMenu = new TDEActionMenu(deviceLabel, @@ -523,8 +521,7 @@ void HwDeviceSystemTray::populateLMBMenu() } - if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable) || - sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) + if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable)) { addDeviceToLMBMenu(sdevice, SDActions::Eject, actionMenu, actionMenuIdx); |