mirror of
https://github.com/gryf/wicd.git
synced 2026-04-03 19:23:36 +02:00
Merged r298 of mainline 1.6.
This commit is contained in:
@@ -403,7 +403,8 @@ class appGui(object):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def _set_not_connecting_state(self):
|
def _set_not_connecting_state(self):
|
||||||
if self.connecting and self.update_cb:
|
if self.connecting:
|
||||||
|
if self.update_cb:
|
||||||
gobject.source_remove(self.update_cb)
|
gobject.source_remove(self.update_cb)
|
||||||
self.update_cb = misc.timeout_add(2, self.update_statusbar)
|
self.update_cb = misc.timeout_add(2, self.update_statusbar)
|
||||||
self.connecting = False
|
self.connecting = False
|
||||||
@@ -415,7 +416,8 @@ class appGui(object):
|
|||||||
gobject.idle_add(self.status_bar.remove, 1, self.statusID)
|
gobject.idle_add(self.status_bar.remove, 1, self.statusID)
|
||||||
|
|
||||||
def set_connecting_state(self, info):
|
def set_connecting_state(self, info):
|
||||||
if not self.connecting and self.update_cb:
|
if not self.connecting:
|
||||||
|
if self.update_cb:
|
||||||
gobject.source_remove(self.update_cb)
|
gobject.source_remove(self.update_cb)
|
||||||
self.update_cb = misc.timeout_add(500, self.update_statusbar,
|
self.update_cb = misc.timeout_add(500, self.update_statusbar,
|
||||||
milli=True)
|
milli=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user