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