From fc92fffd1ab627dfef3c13beaded2a849e5297fc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 3 Aug 2021 21:52:12 +0800 Subject: [PATCH] bugfix --- kivyblocks/ready.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivyblocks/ready.py b/kivyblocks/ready.py index 43f7f1c..c0d1f1a 100644 --- a/kivyblocks/ready.py +++ b/kivyblocks/ready.py @@ -94,6 +94,9 @@ class WidgetReady(object): # Window.restore() state = self._fullscreen_state window.remove_widget(self) + for c in state['window_children']: + if c in Window.children: + Window.remove_widget(c) for child in state['window_children']: window.add_widget(child) self.pos_hint = state['pos_hint']