Re: [PATCH 2/2] cleardisk_gui: Fix going back to the cleardisks gui

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/iw/cleardisks_gui.py b/iw/cleardisks_gui.py
> index 10ffdcb..ec026ec 100644
> --- a/iw/cleardisks_gui.py
> +++ b/iw/cleardisks_gui.py
> @@ -60,8 +60,8 @@ class ClearDisksWindow (InstallWindow):
>  
>          cleardisks.sort(self.anaconda.id.storage.compareDisks)
>  
> -        self.anaconda.id.storage.clearPartDisks.extend(cleardisks + [bootDisk])
> -        self.anaconda.id.bootloader.drivelist = [bootDisk] + cleardisks
> +        self.anaconda.id.storage.clearPartDisks = cleardisks
> +        self.anaconda.id.bootloader.updateDriveList([bootDisk])
>  
>      def getScreen (self, anaconda):
>          (xml, self.vbox) = gui.getGladeWidget("cleardisks.glade", "vbox")
> @@ -140,7 +140,13 @@ class ClearDisksWindow (InstallWindow):
>              if not device:
>                  continue
>  
> -            self.store.append(None, (device, True, True, False, False,
> +            rightVisible = d in self.anaconda.id.storage.clearPartDisks
> +            rightActive = rightVisible and \
> +                          d in self.anaconda.id.bootloader.drivelist[:1]
> +            leftVisible = not rightVisible
> +            self.store.append(None, (device,
> +                                     leftVisible, True,
> +                                     rightVisible, rightActive,
>                                       device.model,
>                                       str(int(device.size)) + " MB",
>                                       device.vendor, "", device.serial))

Looks fine.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux