[PATCH 2/4 rhel7-branch] Make the LUKS unlock callback a timed action
Radek Vykydal
rvykydal at redhat.com
Tue Sep 16 07:39:47 UTC 2014
From: Vratislav Podzimek <vpodzime at redhat.com>
Related: rhbz#1065716
It usually takes a while and the installer looks frozen if we don't switch to
busy cursor (which @timed_action does).
Port of commit 73f686134af9c7077ce590d62a966ed94bb5eca8 from master.
---
pyanaconda/ui/gui/spokes/custom.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 8d4365b..8991506 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -78,7 +78,7 @@ from pyanaconda.ui.gui.spokes.lib.accordion import Accordion, Page, CreateNewPag
from pyanaconda.ui.gui.spokes.lib.refresh import RefreshDialog
from pyanaconda.ui.gui.spokes.lib.summary import ActionSummaryDialog
from pyanaconda.ui.gui.utils import setViewportBackground, gtk_action_wait, enlightbox, fancy_set_sensitive, ignoreEscape,\
- really_hide, really_show, escape_markup
+ really_hide, really_show, escape_markup, timed_action
from pyanaconda.ui.gui.categories.system import SystemCategory
from pyanaconda.ui.lib.disks import size_str
from pyanaconda.kickstart import refreshAutoSwapSize
@@ -2993,6 +2993,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self._back_already_clicked = False
self._applyButton.set_sensitive(False)
+ @timed_action(delay=50, threshold=100)
def on_unlock_clicked(self, button):
""" try to open the luks device, populate, then call _do_refresh. """
self.clear_errors()
--
1.9.3
More information about the anaconda-patches
mailing list