Added missing line to desktop/onionshare/gui_common.py

This commit is contained in:
NoisyCoil 2022-10-23 14:45:25 +02:00
parent fadba5506a
commit 7936cb85be

View File

@ -602,6 +602,7 @@ class ToggleCheckbox(QtWidgets.QCheckBox):
painter.setRenderHint(QtGui.QPainter.Antialiasing)
painter.setPen(QtCore.Qt.NoPen)
opt = QtWidgets.QStyleOptionButton()
opt.initFrom(self)
self.initStyleOption(opt)
s = self.style()
s.drawControl(QtWidgets.QStyle.CE_CheckBox, opt, painter, self)