diff options
author | Chris Lumens <clumens@redhat.com> | 2006-02-14 17:01:08 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-02-14 17:01:08 +0000 |
commit | 13a5677623cb005adf00b9776e9ad2420f15e797 (patch) | |
tree | ade398f73d8314f42e7b1226022c786d3dc65129 /text.py | |
parent | 51923919458e5111db46a926d3f5237eb3e858ba (diff) | |
download | anaconda-13a5677623cb005adf00b9776e9ad2420f15e797.tar.gz anaconda-13a5677623cb005adf00b9776e9ad2420f15e797.tar.xz anaconda-13a5677623cb005adf00b9776e9ad2420f15e797.zip |
Hide the remote button if there's no network.
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -28,6 +28,7 @@ from language import expandLangs from flags import flags from constants_text import * from constants import * +from vnc import hasActiveNetDev import floppy from rhpl.translate import _, cat, N_ @@ -143,10 +144,15 @@ class ExceptionWindow: self.text = "%s\n\n" % shortTraceback self.screen = screen + self.buttons=[TEXT_OK_BUTTON] + if floppy.hasFloppyDevice() == True or DEBUG: - self.buttons=[TEXT_OK_BUTTON, _("Save"), _("Remote"), _("Debug")] - else: - self.buttons=[TEXT_OK_BUTTON, _("Remote"), _("Debug")] + self.buttons.append(_("Save")) + + if hasActiveNetDev() or DEBUG: + self.buttons.append(_("Remote")) + + self.buttons.append(_("Debug")) def run(self): log.info ("in run, screen = %s" % self.screen) |