From 7936cb85be72818a33df389ce9f506e4f1d29488 Mon Sep 17 00:00:00 2001 From: NoisyCoil Date: Sun, 23 Oct 2022 14:45:25 +0200 Subject: [PATCH] Added missing line to desktop/onionshare/gui_common.py --- desktop/onionshare/gui_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/onionshare/gui_common.py b/desktop/onionshare/gui_common.py index 38f567e2..bb7e1f1b 100644 --- a/desktop/onionshare/gui_common.py +++ b/desktop/onionshare/gui_common.py @@ -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)