printer_select: hide action_bar on startup and translate name
This commit is contained in:
@@ -116,6 +116,11 @@ class BasePanel(ScreenPanel):
|
||||
return
|
||||
|
||||
def show_heaters(self, show=True):
|
||||
for child in self.control['temp_box'].get_children():
|
||||
self.control['temp_box'].remove(child)
|
||||
if not show or self._screen.printer.get_temp_store_devices() is None:
|
||||
return
|
||||
|
||||
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
|
||||
if printer_cfg is not None:
|
||||
self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None)
|
||||
@@ -123,12 +128,6 @@ class BasePanel(ScreenPanel):
|
||||
self.titlebar_name_type = None
|
||||
logging.info(f"Titlebar name type: {self.titlebar_name_type}")
|
||||
|
||||
for child in self.control['temp_box'].get_children():
|
||||
self.control['temp_box'].remove(child)
|
||||
|
||||
if not show or self._screen.printer.get_temp_store_devices() is None:
|
||||
return
|
||||
|
||||
img_size = self._gtk.img_scale * .5
|
||||
for device in self._screen.printer.get_temp_store_devices():
|
||||
self.labels[device] = Gtk.Label(label="100º")
|
||||
|
Reference in New Issue
Block a user