There is no need to use lightbox for pre and post-processing.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/gui/spokes/source.py | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 94b45ca..9e05a2c 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -812,21 +812,21 @@ class SourceSpoke(NormalSpoke):
def on_chooser_clicked(self, button):
dialog = IsoChooser(self.data)
- with enlightbox(self.window, dialog.window):
- # If the chooser has been run one before, we should make it default to
- # the previously selected file.
- if self._currentIsoFile:
- dialog.refresh(currentFile=self._currentIsoFile)
- else:
- dialog.refresh()
+ # If the chooser has been run one before, we should make it default to
+ # the previously selected file.
+ if self._currentIsoFile:
+ dialog.refresh(currentFile=self._currentIsoFile)
+ else:
+ dialog.refresh()
+ with enlightbox(self.window, dialog.window):
f = dialog.run(self._get_selected_partition())
- if f:
- self._currentIsoFile = f
- button.set_label(os.path.basename(f))
- button.set_use_underline(False)
- self._verifyIsoButton.set_sensitive(True)
+ if f:
+ self._currentIsoFile = f
+ button.set_label(os.path.basename(f))
+ button.set_use_underline(False)
+ self._verifyIsoButton.set_sensitive(True)
def on_proxy_clicked(self, button):
dialog = ProxyDialog(self.data, self._proxyUrl)
--
1.8.4.2