For shrunk filesystems, the amount of free space made was not being reflected after the user clicked on a different partition. --- pyanaconda/ui/gui/spokes/lib/resize.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py index 2df4c59..1ec737a 100644 --- a/pyanaconda/ui/gui/spokes/lib/resize.py +++ b/pyanaconda/ui/gui/spokes/lib/resize.py @@ -432,16 +432,19 @@ class ResizeDialog(GUIObject): selection = self.builder.get_object("diskView-selection") (model, itr) = selection.get_selected()
+ old_delta = rng.get_adjustment().get_upper()-model[itr][RESIZE_TARGET_COL] + self._selectedReclaimableSpace -= old_delta + # Update the target size in the store. model[itr][RESIZE_TARGET_COL] = rng.get_value()
# Update the "Total selected space" label. delta = rng.get_adjustment().get_upper()-rng.get_value() - self._update_labels(selectedReclaimable=self._selectedReclaimableSpace+delta) + self._selectedReclaimableSpace += delta + self._update_labels(selectedReclaimable=self._selectedReclaimableSpace)
# And then the reclaim button, in case they've made enough space. - newTotal = self._selectedReclaimableSpace + delta - self._update_reclaim_button(Size(spec="%s MB" % newTotal)) + self._update_reclaim_button(Size(spec="%s MB" % self._selectedReclaimableSpace))
def resize_slider_format(self, scale, value): # This makes the value displayed under the slider prettier than just a