Only call a callback once for a specific method.
This commit is contained in:
parent
2a637c0b12
commit
f08fcc68d3
@ -145,6 +145,7 @@ class CoreProxy(gobject.GObject):
|
|||||||
if _func is not None:
|
if _func is not None:
|
||||||
if (func, args) in self._multi.get_call_list():
|
if (func, args) in self._multi.get_call_list():
|
||||||
index = self._multi.get_call_list().index((func, args))
|
index = self._multi.get_call_list().index((func, args))
|
||||||
|
if callback not in self._callbacks[index]:
|
||||||
self._callbacks[index].append(callback)
|
self._callbacks[index].append(callback)
|
||||||
else:
|
else:
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user