Skip to content

Commit 047b335

Browse files
Merge pull request #16 from inventree/hq-option
Add configurable option for high quality printing
2 parents 9d55169 + d4bb02f commit 047b335

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

inventree_brother/brother_plugin.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class BrotherLabelPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlugin):
9090
'validator': bool,
9191
'default': False,
9292
},
93+
'HQ': {
94+
'name': _('High Quality'),
95+
'description': _('Enable high quality option (required for some printers)'),
96+
'validator': bool,
97+
'default': True,
98+
},
9399
}
94100

95101
def print_label(self, **kwargs):
@@ -128,7 +134,7 @@ def print_label(self, **kwargs):
128134
'cut': self.get_setting('AUTO_CUT'),
129135
'rotate': self.get_setting('ROTATION'),
130136
'compress': self.get_setting('COMPRESSION'),
131-
'hq': True,
137+
'hq': self.get_setting('HQ'),
132138
'red': red,
133139
}
134140

0 commit comments

Comments
 (0)