From b59536b058f9b2ebe1a379dbb1a0147e2108b44e Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Sun, 19 May 2024 08:33:32 +0900 Subject: [PATCH] quick dirty fix #2233: invisible network status peers; part 2 --- src/bitmessageqt/networkstatus.py | 4 ---- src/bitmessageqt/networkstatus.ui | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/bitmessageqt/networkstatus.py b/src/bitmessageqt/networkstatus.py index ee012cb4..32cb3469 100644 --- a/src/bitmessageqt/networkstatus.py +++ b/src/bitmessageqt/networkstatus.py @@ -187,12 +187,8 @@ class NetworkStatus(QtWidgets.QWidget, RetranslateMixin): 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: diff --git a/src/bitmessageqt/networkstatus.ui b/src/bitmessageqt/networkstatus.ui index e0c01b57..0545a788 100644 --- a/src/bitmessageqt/networkstatus.ui +++ b/src/bitmessageqt/networkstatus.ui @@ -54,6 +54,15 @@ + + + + 0 + 0 + 0 + + + @@ -65,6 +74,15 @@ + + + + 0 + 0 + 0 + + + @@ -76,6 +94,15 @@ + + + + 0 + 0 + 0 + + +