Removed (Whole) label when imaging

* If only one partition was selected it would be incorrectly labeled "Whole"
  * Easier to remove the label than rework the data structures
This commit is contained in:
2Shirt 2018-09-03 21:45:46 -06:00
parent 9dbfce94d4
commit bd47f08996
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1215,10 +1215,6 @@ def update_sidepane(state):
for bp in state.block_pairs:
if state.source.is_image():
output.append('{BLUE}Image File{CLEAR}'.format(**COLORS))
elif state.mode == 'image' and len(state.block_pairs) == 1:
output.append('{BLUE}{source} {YELLOW}(Whole){CLEAR}'.format(
source=bp.source_path,
**COLORS))
else:
output.append('{BLUE}{source}{CLEAR}'.format(
source=bp.source_path,