Skip to content

Commit c4cc26f

Browse files
committed
MTP: Show disk space in volume breadcrumb dropdown
- Include `mobile_device` in the volume space manager's category filter so MTP volumes get space info fetched in the dropdown, not just in the status bar
1 parent b155f1f commit c4cc26f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/desktop/src/lib/file-explorer/navigation/volume-space-manager.svelte.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export function createVolumeSpaceManager(): VolumeSpaceManager {
7676
}
7777

7878
async function fetchVolumeSpaces(vols: VolumeInfo[]): Promise<void> {
79-
const physicalVolumes = vols.filter((v) => v.category === 'main_volume' || v.category === 'attached_volume')
79+
const physicalVolumes = vols.filter(
80+
(v) => v.category === 'main_volume' || v.category === 'attached_volume' || v.category === 'mobile_device',
81+
)
8082
await Promise.all(
8183
physicalVolumes
8284
.filter((v) => !volumeSpaceMap.has(v.id))

0 commit comments

Comments
 (0)