mirror of
https://github.com/gryf/wicd.git
synced 2025-12-23 14:42:29 +01:00
Do nothing in wicd-curses if there are no networks present.
This commit is contained in:
@@ -821,18 +821,16 @@ class appGUI():
|
|||||||
self.diag.ready_widgets(ui,self.frame)
|
self.diag.ready_widgets(ui,self.frame)
|
||||||
self.frame.set_body(self.diag)
|
self.frame.set_body(self.diag)
|
||||||
self.diag_type = 'conf'
|
self.diag_type = 'conf'
|
||||||
# Guess what! I actually need to put this here, else I'll have
|
if "enter" in keys or 'C' in keys:
|
||||||
# tons of references to self.frame lying around. ^_^
|
|
||||||
if "enter" in keys:
|
|
||||||
focus = self.frame.body.get_focus()
|
focus = self.frame.body.get_focus()
|
||||||
if focus == self.wiredCB:
|
if focus == self.wiredCB:
|
||||||
self.special = focus
|
self.special = focus
|
||||||
self.connect("wired",0)
|
self.connect("wired",0)
|
||||||
else:
|
else:
|
||||||
# wless list only other option
|
# wless list only other option, if it is around
|
||||||
wid,pos = self.thePile.get_focus().get_focus()
|
if self.wlessLB != self.no_wlan:
|
||||||
self.connect("wireless",pos)
|
wid,pos = self.thePile.get_focus().get_focus()
|
||||||
|
self.connect("wireless",pos)
|
||||||
if "esc" in keys:
|
if "esc" in keys:
|
||||||
# Force disconnect here if connection in progress
|
# Force disconnect here if connection in progress
|
||||||
if self.connecting:
|
if self.connecting:
|
||||||
@@ -853,15 +851,6 @@ class appGUI():
|
|||||||
return True
|
return True
|
||||||
if "A" in keys:
|
if "A" in keys:
|
||||||
about_dialog(self.frame)
|
about_dialog(self.frame)
|
||||||
if "C" in keys:
|
|
||||||
focus = self.frame.body.get_focus()
|
|
||||||
if focus == self.wiredCB:
|
|
||||||
self.special = focus
|
|
||||||
self.connect("wired",0)
|
|
||||||
else:
|
|
||||||
# wless list only other option
|
|
||||||
wid,pos = self.thePile.get_focus().get_focus()
|
|
||||||
self.connect("wireless",pos)
|
|
||||||
if "I" in keys:
|
if "I" in keys:
|
||||||
self.raise_hidden_network_dialog()
|
self.raise_hidden_network_dialog()
|
||||||
if "H" in keys or 'h' in keys or '?' in keys:
|
if "H" in keys or 'h' in keys or '?' in keys:
|
||||||
|
|||||||
Reference in New Issue
Block a user