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: if len(self.pageWidgets) <= 1:
return return
w = self.pageWidgets[-1] w = self.pageWidgets[-1]
w.beforeDestroy() try:
w.beforeDestroy()
except:
pass
self.pageWidgets = self.pageWidgets[:-1] self.pageWidgets = self.pageWidgets[:-1]
self.showLastPage() self.showLastPage()

View File

@ -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