bugfix
This commit is contained in:
parent
53e3a9ce6f
commit
db9cf149e0
@ -52,7 +52,10 @@ class PageContainer(FloatLayout):
|
|||||||
if len(self.pageWidgets) <= 1:
|
if len(self.pageWidgets) <= 1:
|
||||||
return
|
return
|
||||||
w = self.pageWidgets[-1]
|
w = self.pageWidgets[-1]
|
||||||
|
try:
|
||||||
w.beforeDestroy()
|
w.beforeDestroy()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.pageWidgets = self.pageWidgets[:-1]
|
self.pageWidgets = self.pageWidgets[:-1]
|
||||||
self.showLastPage()
|
self.showLastPage()
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class VPlayer(FloatLayout):
|
|||||||
|
|
||||||
def beforeDestroy(self):
|
def beforeDestroy(self):
|
||||||
try:
|
try:
|
||||||
self.stop()
|
self.pause()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print_exc()
|
print_exc()
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user