Do not list the size for empty filesystems
This commit is contained in:
parent
a1b8484879
commit
10e0337564
|
@ -539,7 +539,10 @@ static void _list_add(Volumes * volumes, char const * name, char const * device,
|
||||||
f = fraction * 100;
|
f = fraction * 100;
|
||||||
snprintf(buf, sizeof(buf), "%.1f%%", fraction * 100.0);
|
snprintf(buf, sizeof(buf), "%.1f%%", fraction * 100.0);
|
||||||
}
|
}
|
||||||
|
if(bsize > 0)
|
||||||
_list_add_size(buf2, sizeof(buf2), bsize, total);
|
_list_add_size(buf2, sizeof(buf2), bsize, total);
|
||||||
|
else
|
||||||
|
buf2[0] = '\0';
|
||||||
_list_get_iter(volumes, &iter, mountpoint);
|
_list_get_iter(volumes, &iter, mountpoint);
|
||||||
pixbuf = _list_get_icon(volumes, dp, flags, mountpoint);
|
pixbuf = _list_get_icon(volumes, dp, flags, mountpoint);
|
||||||
gtk_list_store_set(volumes->store, &iter, DC_DEVICE, device,
|
gtk_list_store_set(volumes->store, &iter, DC_DEVICE, device,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user