Skip to content

Commit

Permalink
feat(spoolman): Add Comment to Spools (KlipperScreen#1511)
Browse files Browse the repository at this point in the history
Co-authored-by: Glought <[email protected]>
  • Loading branch information
Glought and Glought authored Nov 26, 2024
1 parent a92be75 commit f187d73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panels/spoolman.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ def _get_filament_formated(self, spool: SpoolmanSpool):
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"):
Expand Down

0 comments on commit f187d73

Please sign in to comment.