mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Fixed a crash on startup.
This commit is contained in:
@@ -844,6 +844,7 @@ class appGUI():
|
|||||||
# Handle keystrokes
|
# Handle keystrokes
|
||||||
if "f8" in keys or 'Q' in keys or 'q' in keys:
|
if "f8" in keys or 'Q' in keys or 'q' in keys:
|
||||||
loop.quit()
|
loop.quit()
|
||||||
|
print "blah"
|
||||||
#return False
|
#return False
|
||||||
if "f5" in keys or 'R' in keys:
|
if "f5" in keys or 'R' in keys:
|
||||||
self.lock_screen()
|
self.lock_screen()
|
||||||
@@ -982,11 +983,13 @@ class appGUI():
|
|||||||
# Resolve any "alarms" in the waiting
|
# Resolve any "alarms" in the waiting
|
||||||
if self.update_tag != None:
|
if self.update_tag != None:
|
||||||
gobject.source_remove(self.update_tag)
|
gobject.source_remove(self.update_tag)
|
||||||
self.update_tag = gobject.timeout_add(50, \
|
if max_wait == None:
|
||||||
self.update_ui,True)
|
max_wait = 50
|
||||||
|
else:
|
||||||
|
max_wait *= 1000
|
||||||
|
|
||||||
#self.update_tag = gobject.timeout_add(max_wait*1000.0, \
|
self.update_tag = gobject.timeout_add(max_wait, \
|
||||||
# self.update_ui,from_alarm=true)
|
self.update_ui,False,True)
|
||||||
#print keys
|
#print keys
|
||||||
#if keys == []:
|
#if keys == []:
|
||||||
# return True
|
# return True
|
||||||
|
|||||||
Reference in New Issue
Block a user