Disk: moves disk hiding by folder and FS type to detection code

Don't probe if hided

Fixes #2043
This commit is contained in:
李通洲
2025-11-06 13:39:30 +08:00
parent 7638e0e4a1
commit 645bf5c839
8 changed files with 85 additions and 45 deletions
+6
View File
@@ -297,6 +297,12 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)
else if(!isPhysicalDevice(device))
continue;
if (options->hideFolders.length && ffDiskMatchesFolderPatterns(&options->hideFolders, device->mnt_dir, FF_DISK_FOLDER_SEPARATOR))
continue;
if (options->hideFS.length && ffStrbufSeparatedContainS(&options->hideFS, device->mnt_type, ':'))
continue;
//We have a valid device, add it to the list
FFDisk* disk = ffListAdd(disks);
disk->type = FF_DISK_VOLUME_TYPE_NONE;