diff options
author | Chris Lumens <clumens@redhat.com> | 2012-03-08 15:30:02 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-03-08 15:30:02 -0500 |
commit | 7432b31a7ac5c8d71026c9dc6f731ffa2c5cc0ae (patch) | |
tree | 358535ed3d8ec8ee8d13e1246b0fc5b499f602c1 /pyanaconda | |
parent | c3c09d9b82a2ad346c160a2e13998695ce3e5bae (diff) | |
download | anaconda-7432b31a7ac5c8d71026c9dc6f731ffa2c5cc0ae.tar.gz anaconda-7432b31a7ac5c8d71026c9dc6f731ffa2c5cc0ae.tar.xz anaconda-7432b31a7ac5c8d71026c9dc6f731ffa2c5cc0ae.zip |
Avoid a big delay when entering software selection by fetching group data early.
This doesn't actually do anything to change the total amount of time everything
takes, but it does move the later delay to happen at the same time as you are
already waiting for the spoke to become ready.
Diffstat (limited to 'pyanaconda')
-rw-r--r-- | pyanaconda/ui/gui/spokes/software.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py index b54c56068..d7d240687 100644 --- a/pyanaconda/ui/gui/spokes/software.py +++ b/pyanaconda/ui/gui/spokes/software.py @@ -93,6 +93,13 @@ class SoftwareSelectionSpoke(NormalSpoke): self._ready = True Gdk.threads_enter() self.selector.set_sensitive(True) + + # Grabbing the list of groups could potentially take a long time the + # first time (yum does a lot of magic property stuff, some of which + # involves side effects like network access) so go ahead and grab + # them once now. + self.refresh() + Gdk.threads_leave() def refresh(self): |