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)