This commit is contained in:
yumoqing 2019-12-24 10:16:29 +08:00
parent 53e3a9ce6f
commit db9cf149e0
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,10 @@ class PageContainer(FloatLayout):
if len(self.pageWidgets) <= 1:
return
w = self.pageWidgets[-1]
w.beforeDestroy()
try:
w.beforeDestroy()
except:
pass
self.pageWidgets = self.pageWidgets[:-1]
self.showLastPage()

View File

@ -194,7 +194,7 @@ class VPlayer(FloatLayout):
def beforeDestroy(self):
try:
self.stop()
self.pause()
except Exception as e:
print_exc()
return True