bugfix
This commit is contained in:
parent
89e84240e0
commit
53e3a9ce6f
@ -51,6 +51,8 @@ class PageContainer(FloatLayout):
|
||||
def previous(self,v=None):
|
||||
if len(self.pageWidgets) <= 1:
|
||||
return
|
||||
w = self.pageWidgets[-1]
|
||||
w.beforeDestroy()
|
||||
self.pageWidgets = self.pageWidgets[:-1]
|
||||
self.showLastPage()
|
||||
|
||||
|
@ -194,7 +194,7 @@ class VPlayer(FloatLayout):
|
||||
|
||||
def beforeDestroy(self):
|
||||
try:
|
||||
self.pause()
|
||||
self.stop()
|
||||
except Exception as e:
|
||||
print_exc()
|
||||
return True
|
||||
@ -358,8 +358,10 @@ class VPlayer(FloatLayout):
|
||||
btn.source = blockImage('mute.jpg')
|
||||
|
||||
def stop(self):
|
||||
print(self)
|
||||
self._video.state = 'stop'
|
||||
try:
|
||||
self._video.state = 'stop'
|
||||
except:
|
||||
print_exc()
|
||||
|
||||
def on_disabled(self,o,v):
|
||||
if self.disabled:
|
||||
|
Loading…
Reference in New Issue
Block a user