Skip to content

Commit

Permalink
quick dirty fix Bitmessage#2233: invisible network status peers
Browse files Browse the repository at this point in the history
  • Loading branch information
kashikoibumi committed May 18, 2024
1 parent 3f808fb commit f356875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bitmessageqt/networkstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,12 @@ def updateNetworkStatusTab(self, outbound, add, destination):
brush = QtGui.QBrush(QtGui.QColor("yellow"), QtCore.Qt.BrushStyle.SolidPattern)
else:
brush = QtGui.QBrush(QtGui.QColor("green"), QtCore.Qt.BrushStyle.SolidPattern)
# XXX quick darty fix for issue #2233
foreground_brush = QtGui.QBrush(QtGui.QColor("black"), QtCore.Qt.BrushStyle.SolidPattern)
for j in range(1):
self.tableWidgetConnectionCount.item(0, j).setBackground(brush)
# XXX quick darty fix for issue #2233
self.tableWidgetConnectionCount.item(0, j).setForeground(foreground_brush)
self.tableWidgetConnectionCount.item(0, 0).setData(QtCore.Qt.ItemDataRole.UserRole, destination)
self.tableWidgetConnectionCount.item(0, 1).setData(QtCore.Qt.ItemDataRole.UserRole, outbound)
else:
Expand Down

0 comments on commit f356875

Please sign in to comment.