1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 17:32:36 +01:00

If the screen in wicd-curses is not up and an ui update is requested, abort the

program.
This commit is contained in:
Andrew Psaltis
2009-05-12 00:04:43 -04:00
parent 5c0afc0f60
commit 3a05d82a23

View File

@@ -962,6 +962,10 @@ class appGUI():
# the input. I'll try to get that working at a later time, if people
# want that "feature".
#canvaso = urwid.CanvasOverlay(self.dialog.render( (80,20),True),canvas,0,1)
# If the screen is turned off for some reason, don't even try to do the
# rest of the stuff.
if not ui._started:
return False
ui.draw_screen((self.size),canvas)
keys = ui.get_input()
self.handle_keys(keys)