mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: Don't show all partitions (for example extended) but only those which can be mounted and they should already have ID_USAGE=filesystem (Linux).
This commit is contained in:
parent
20c3b0331f
commit
c8b350c867
1 changed files with 2 additions and 3 deletions
|
|
@ -816,10 +816,9 @@ begin
|
|||
// Add drives not having a partition table which are usually devices
|
||||
// with removable media like CDROM, floppy - they can be mounted.
|
||||
// Don't add drives with partition table because they cannot be mounted.
|
||||
// Add devices reported as "filesystem" and partitions.
|
||||
// Add devices reported as "filesystem".
|
||||
if (UDisksDevices[i].DeviceIsDrive and not UDisksDevices[i].DeviceIsPartitionTable) or
|
||||
(UDisksDevices[i].IdUsage = 'filesystem') or
|
||||
(UDisksDevices[i].DeviceIsPartition) then
|
||||
(UDisksDevices[i].IdUsage = 'filesystem') then
|
||||
begin
|
||||
if (AddedDevices.IndexOf(UDisksDevices[i].DeviceFile) < 0) and
|
||||
(not IsDeviceMountedAtRoot(UDisksDevices[i])) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue