Don't include advanced devices in the total count on the basic filter UI.
Seeing a count of more devices than you can find in the UI is confusing, so
only include them in the count if we're doing the advanced UI.
iw/filter_gui.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
for pg in self.pages:
+ added = True
+ # Only update the size label if this device was added to any pages.
+ # This prevents situations where we're only displaying the basic
+ # filter that has one disk, but there are several advanced disks
+ # in the store that cannot be seen.
+ if added:
+ totalDevices += 1
+ totalSize += tuple["XXX_SIZE"]
for d in nonraids:
partedDevice = parted.Device(path="/dev/" + udev_device_get_name(d))
d["XXX_SIZE"] = int(partedDevice.getSize())
Anaconda-devel-list mailing list