feat(spoolman): Add Comment to Spools (#1511)

Co-authored-by: Glought <663343+Glought@users.noreply.github.com>
This commit is contained in:
GloughtandGlought authored and GitHub committed 2024-11-26 12:00:56 -03:00
1 parent a92be75c48
commit f187d73838
1 file changed
+2
+2
View File
@@ -336,6 +336,8 @@ class Panel(ScreenPanel):
result = f'<big><b>{spool.name}</b></big>\n'
else:
result = f'<big>{spool.name}</big>\n'
if hasattr(spool, "comment"):
result += f'{_("Comment")}:<b> {spool.comment}</b>\n'
if spool.last_used:
result += f'{_("Last used")}:<b> {spool.last_used.astimezone():{self.timeFormat}}</b>\n'
if hasattr(spool, "remaining_weight"):