Jump to content


Photo

Skin.py


  • Please log in to reply
1 reply to this topic

#1 pzanone

  • Senior Member
  • 260 posts

+13
Neutral

Posted Yesterday, 19:31

I wanted to ask if self.callbacks in skin.py was correct

https://github.com/OpenPLi/enigma2/blob/99a4d76a83872d57910e2f759b5ce1d29238a100/lib/python/skin.py#L157
				if runCallbacks:
					for method in self.callbacks:
						if method:
							method()
				return True

ony for info, While I was preparing, an image caught my eye.

 

regards


Edited by pzanone, Yesterday, 19:32.


Re: Skin.py #2 Dimitrij

  • PLi® Core member
  • 10,423 posts

+356
Excellent

Posted Yesterday, 19:39

Not

				if runCallbacks:
-					for method in self.callbacks:
+					for method in callbacks:
						if method:
							method()
				return True

and

def removeCallback(callback):
-	if callback in self.callbacks:
+	if callback in callbacks:
		callbacks.remove(callback)

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users