From 8143636adb3adddaa969f913a590f65483ae0bc3 Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 11 Jan 2024 22:26:10 -0300 Subject: [PATCH] base_panel: minor fixup for the new titlebar func --- panels/base_panel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panels/base_panel.py b/panels/base_panel.py index 49a155f8..d6974eaa 100644 --- a/panels/base_panel.py +++ b/panels/base_panel.py @@ -131,9 +131,10 @@ class BasePanel(ScreenPanel): break if device.startswith("extruder") and self.current_extruder is False: self.control['temp_box'].add(self.labels[f"{device}_box"]) + n += 1 elif device.startswith("heater"): self.control['temp_box'].add(self.labels[f"{device}_box"]) - n += 1 + n += 1 for device in devices: # Users can fill the bar if they want if n >= nlimit + 1: