Skip to content

Commit

Permalink
Merge pull request #16 from inventree/hq-option
Browse files Browse the repository at this point in the history
Add configurable option for high quality printing
  • Loading branch information
SchrodingersGat committed Jan 6, 2023
2 parents 9d55169 + d4bb02f commit 047b335
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inventree_brother/brother_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ class BrotherLabelPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlugin):
'validator': bool,
'default': False,
},
'HQ': {
'name': _('High Quality'),
'description': _('Enable high quality option (required for some printers)'),
'validator': bool,
'default': True,
},
}

def print_label(self, **kwargs):
Expand Down Expand Up @@ -128,7 +134,7 @@ def print_label(self, **kwargs):
'cut': self.get_setting('AUTO_CUT'),
'rotate': self.get_setting('ROTATION'),
'compress': self.get_setting('COMPRESSION'),
'hq': True,
'hq': self.get_setting('HQ'),
'red': red,
}

Expand Down

0 comments on commit 047b335

Please sign in to comment.