size_str can never actually become empty as formatByteSize returns "0 B" and never an empty string.
Details
Details
- Reviewers
davidedmundson - Commits
- R245:cc7760bd33e4: Fix device label with unknown size
Made it pretend my hard drive had 0 byte size, used to show "0 B Hard Drive", now it just shows "Hard Drive" as intended
Diff Detail
Diff Detail
- Repository
- R245 Solid
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
I have seen it do that for e.g. a Floppy that is not "present" (I fixed that independently from this patch to show "Floppy" again). I guess whenever an external media isn't present, like an SD card in a reader or so.