Skip to content
Snippets Groups Projects
Commit 66107431 authored by Simon McVittie's avatar Simon McVittie
Browse files

test-ui: Automatically check xterm if a shell is requested

parent a9fa948c
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ class Gui:
self.shell_combo.append(
'--shell-instead', 'Instead of running the command')
self.shell_combo.set_active(0)
self.shell_combo.connect('changed', self._shell_changed)
self.grid.attach(self.shell_combo, 1, row, 1, 1)
row += 1
......@@ -157,6 +158,13 @@ class Gui:
row += 1
def _shell_changed(self, shell_combo):
if shell_combo.get_active_id():
self.xterm_check.set_active(True)
self.xterm_check.set_sensitive(False)
else:
self.xterm_check.set_sensitive(True)
def _describe_runtime(
self,
path # type: str
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment