splash_screen: Hide change printer button if only one printer is configured
This commit is contained in:
@@ -84,6 +84,7 @@ class SplashScreenPanel(ScreenPanel):
|
|||||||
self.labels['actions'].add(self.labels['restart'])
|
self.labels['actions'].add(self.labels['restart'])
|
||||||
self.labels['actions'].add(self.labels['firmware_restart'])
|
self.labels['actions'].add(self.labels['firmware_restart'])
|
||||||
self.labels['actions'].add(self.labels['menu'])
|
self.labels['actions'].add(self.labels['menu'])
|
||||||
|
if len(self._config.get_printers()) > 1:
|
||||||
self.labels['actions'].add(self.labels['printer_select'])
|
self.labels['actions'].add(self.labels['printer_select'])
|
||||||
self.labels['actions'].show_all()
|
self.labels['actions'].show_all()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user