splash: do not show power_on if moonraker is not connected

This commit is contained in:
alfrix
2022-03-31 13:47:42 -03:00
parent 51b4d1e1e6
commit 76b7ad54eb
2 changed files with 7 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class SplashScreenPanel(ScreenPanel):
self.clear_action_bar()
printer = self._screen.connected_printer
if printer is not None:
if printer is not None and not self._screen.shutdown:
printer_cfg = self._config.get_printer_config(printer)
if printer_cfg is not None:
power_devices = printer_cfg.get("power_devices", "")