screen: fix panels not reloading after save_config
This commit is contained in:
parent
77aef7cf67
commit
5a4addf3ed
@ -678,11 +678,9 @@ class KlipperScreen(Gtk.Window):
|
|||||||
logging.debug("### Going to disconnected")
|
logging.debug("### Going to disconnected")
|
||||||
self.base_panel.show_macro_shortcut(False)
|
self.base_panel.show_macro_shortcut(False)
|
||||||
self.printer_initializing(_("Klipper has disconnected"))
|
self.printer_initializing(_("Klipper has disconnected"))
|
||||||
|
|
||||||
for panel in list(self.panels):
|
for panel in list(self.panels):
|
||||||
if panel in ["printer_select", "splash_screen"]:
|
if panel not in ["printer_select", "splash_screen"]:
|
||||||
continue
|
del self.panels[panel]
|
||||||
# del self.panels[panel]
|
|
||||||
|
|
||||||
def state_error(self, prev_state):
|
def state_error(self, prev_state):
|
||||||
if "printer_select" in self._cur_panels:
|
if "printer_select" in self._cur_panels:
|
||||||
@ -708,8 +706,7 @@ class KlipperScreen(Gtk.Window):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for panel in list(self.panels):
|
for panel in list(self.panels):
|
||||||
if panel in ["printer_select", "splash_screen"]:
|
if panel not in ["printer_select", "splash_screen"]:
|
||||||
continue
|
|
||||||
del self.panels[panel]
|
del self.panels[panel]
|
||||||
|
|
||||||
def state_paused(self, prev_state):
|
def state_paused(self, prev_state):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user