diff --git a/screen.py b/screen.py index ddc347c1..119e7aa5 100755 --- a/screen.py +++ b/screen.py @@ -479,9 +479,6 @@ class KlipperScreen(Gtk.Window): self._cur_panels = [] for _ in self.base_panel.content.get_children(): self.base_panel.content.remove(_) - for panel in list(self.panels): - if panel not in ["printer_select", "splash_screen"]: - del self.panels[panel] for dialog in self.dialogs: self.gtk.remove_dialog(dialog) self.close_screensaver() @@ -496,7 +493,6 @@ class KlipperScreen(Gtk.Window): if self._cur_panels[-1] in self.subscriptions: self.subscriptions.remove(self._cur_panels[-1]) if pop: - del self.panels[self._cur_panels[-1]] del self._cur_panels[-1] self.attach_panel(self._cur_panels[-1])