summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-02-14 17:01:08 +0000
committerChris Lumens <clumens@redhat.com>2006-02-14 17:01:08 +0000
commit13a5677623cb005adf00b9776e9ad2420f15e797 (patch)
treeade398f73d8314f42e7b1226022c786d3dc65129 /text.py
parent51923919458e5111db46a926d3f5237eb3e858ba (diff)
downloadanaconda-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.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/text.py b/text.py
index 118bdf3a7..c3c4d0072 100644
--- a/text.py
+++ b/text.py
@@ -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)