gui: channel_details minor fix

This commit is contained in:
ThomasV 2019-05-23 15:16:14 +02:00
parent a70441f0f1
commit 84c6a464e8

View file

@ -114,10 +114,8 @@ class ChannelDetailsDialog(QtWidgets.QDialog):
self.update_sent_received() self.update_sent_received()
def update_sent_received(self): def update_sent_received(self):
self.sent_label.setText(str(htlcsum( self.sent_label.setText(str(self.chan.total_msat(Direction.SENT)))
self.chan.total_msat(Direction.SENT)))) self.received_label.setText(str(self.chan.total_msat(Direction.RECEIVED)))
self.received_label.setText(str(htlcsum(
self.chan.total_msat(Direction.RECEIVED))))
@QtCore.pyqtSlot(str) @QtCore.pyqtSlot(str)
def show_tx(self, link_text: str): def show_tx(self, link_text: str):