splash_screen: Hide change printer button if only one printer is configured

This commit is contained in:
Jordan Ruthe 2021-03-13 17:05:20 -05:00
parent 6f8ee80574
commit 396467d50f

View File

@ -84,7 +84,8 @@ class SplashScreenPanel(ScreenPanel):
self.labels['actions'].add(self.labels['restart'])
self.labels['actions'].add(self.labels['firmware_restart'])
self.labels['actions'].add(self.labels['menu'])
self.labels['actions'].add(self.labels['printer_select'])
if len(self._config.get_printers()) > 1:
self.labels['actions'].add(self.labels['printer_select'])
self.labels['actions'].show_all()
def firmware_restart(self, widget):