From 6a9c662287b8b9c66639107b6912935d5fea8721 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Thu, 25 Jun 2026 11:32:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(bulletin):=20=E4=BF=AE=E5=A4=8D=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=87=E7=AD=BE=E5=9C=86=E5=9C=88=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E8=A7=81=E5=92=8C=E5=AE=9A=E6=97=B6=E5=99=A8=E6=82=AC=E7=A9=BA?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/ALBulletinDialog.py | 2 +- src/gui/ALSettingsWidget.py | 2 +- src/gui/ALStatusLabel.py | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gui/ALBulletinDialog.py b/src/gui/ALBulletinDialog.py index 9bdcf02..b5350e3 100644 --- a/src/gui/ALBulletinDialog.py +++ b/src/gui/ALBulletinDialog.py @@ -332,7 +332,7 @@ class ALBulletinDialog(QDialog, Ui_ALBulletinDialog): self.ALSyncStatusLabel.status = ALStatusLabel.Status.SUCCESS self.SyncStatusDetailLabel.setText("同步成功") self.SyncStatusDetailLabel.setStyleSheet("color: green;") - QTimer.singleShot(3000, self.clearSyncStatus) + QTimer.singleShot(3000, self, self.clearSyncStatus) self.setLastSyncTime(self.__bulletin_mgr.lastSyncTime()) self.updateBulletinList(merged) diff --git a/src/gui/ALSettingsWidget.py b/src/gui/ALSettingsWidget.py index aef6584..36eeaa3 100644 --- a/src/gui/ALSettingsWidget.py +++ b/src/gui/ALSettingsWidget.py @@ -497,7 +497,7 @@ class ALSettingsWidget(CenterOnParentMixin, QWidget, Ui_ALSettingsWidget): ) self.BulletinTestStatusLabel.setStyleSheet("color: green;") self.BulletinTestButton.setEnabled(True) - QTimer.singleShot(3000, self.clearBulletinTestStatus) + QTimer.singleShot(3000, self, self.clearBulletinTestStatus) @Slot(str) def __onBulletinTestError( diff --git a/src/gui/ALStatusLabel.py b/src/gui/ALStatusLabel.py index 5a08e59..c1668a5 100644 --- a/src/gui/ALStatusLabel.py +++ b/src/gui/ALStatusLabel.py @@ -127,7 +127,6 @@ class ALStatusLabel(QLabel): case self.Status.WAITING: Pen = Painter.pen() Pen.setWidth(2) - Pen.setBrush(Qt.BrushStyle.NoBrush) Pen.setCapStyle(Qt.PenCapStyle.RoundCap) Pen.setColor(QColor("#969696")) # grey Painter.setPen(Pen) @@ -156,7 +155,6 @@ class ALStatusLabel(QLabel): # draw the success green circle Pen = Painter.pen() Pen.setWidth(2) - Pen.setBrush(Qt.BrushStyle.NoBrush) Pen.setCapStyle(Qt.PenCapStyle.RoundCap) Pen.setColor(QColor("#4CAF50" if self.isDarkMode() else "#00AF50")) # green Painter.setPen(Pen) @@ -193,7 +191,6 @@ class ALStatusLabel(QLabel): # draw the warning orange circle Pen = Painter.pen() Pen.setWidth(2) - Pen.setBrush(Qt.BrushStyle.NoBrush) Pen.setCapStyle(Qt.PenCapStyle.RoundCap) Pen.setColor(QColor("#FF9800")) # orange Painter.setPen(Pen) @@ -223,7 +220,6 @@ class ALStatusLabel(QLabel): # draw the failure red circle Pen = Painter.pen() Pen.setWidth(2) - Pen.setBrush(Qt.BrushStyle.NoBrush) Pen.setCapStyle(Qt.PenCapStyle.RoundCap) Pen.setColor(QColor("#DC0000")) # red Painter.setPen(Pen)