Commit ef565f7d authored by hydrargyrum's avatar hydrargyrum

qr-shot: when encoding text, force white background for scanners

parent 18daf800
......@@ -298,6 +298,8 @@ class Window(QMainWindow):
if QMessageBox.question(self, 'Warning', 'The text entered is quite large, this could make the app crash. Continue anyway?', QMessageBox.Yes | QMessageBox.No) != QMessageBox.Yes:
return
pix = encodeText(text)
self.cropper.setStyleSheet('*{background: white;}')
self.setPixmap(pix)
def setPixmap(self, pix):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment