mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Hopefully fixed bug 355693, related to focus positioning.
This commit is contained in:
@@ -682,7 +682,7 @@ class appGUI():
|
|||||||
else:
|
else:
|
||||||
self.wlessLB.body = urwid.SimpleListWalker(wlessL)
|
self.wlessLB.body = urwid.SimpleListWalker(wlessL)
|
||||||
else:
|
else:
|
||||||
self.wlessLB = self.no_wlan
|
self.wlesslb = self.no_wlan
|
||||||
if daemon.GetAlwaysShowWiredInterface() or wired.CheckPluggedIn():
|
if daemon.GetAlwaysShowWiredInterface() or wired.CheckPluggedIn():
|
||||||
#if daemon.GetAlwaysShowWiredInterface():
|
#if daemon.GetAlwaysShowWiredInterface():
|
||||||
#if firstrun:
|
#if firstrun:
|
||||||
@@ -698,7 +698,7 @@ class appGUI():
|
|||||||
if self.focusloc[0] == self.WIRED_IDX:
|
if self.focusloc[0] == self.WIRED_IDX:
|
||||||
self.thePile.get_focus().get_body().set_focus(self.focusloc[1])
|
self.thePile.get_focus().get_body().set_focus(self.focusloc[1])
|
||||||
else:
|
else:
|
||||||
if self.wlessLB is not self.no_wlan:
|
if self.wlessLB != self.no_wlan:
|
||||||
self.thePile.get_focus().set_focus(self.focusloc[1])
|
self.thePile.get_focus().set_focus(self.focusloc[1])
|
||||||
else:
|
else:
|
||||||
self.thePile.set_focus(self.wiredCB)
|
self.thePile.set_focus(self.wiredCB)
|
||||||
@@ -995,7 +995,7 @@ def main():
|
|||||||
if options.screen == 'raw':
|
if options.screen == 'raw':
|
||||||
import urwid.raw_display
|
import urwid.raw_display
|
||||||
ui = urwid.raw_display.Screen()
|
ui = urwid.raw_display.Screen()
|
||||||
elif options.screen is 'curses':
|
elif options.screen == 'curses':
|
||||||
import urwid.curses_display
|
import urwid.curses_display
|
||||||
ui = urwid.curses_display.Screen()
|
ui = urwid.curses_display.Screen()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user