From 9c8d2be6389e8265d08e4c58fe5cc20b3d630911 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 26 Mar 2020 02:54:50 +0100 Subject: [PATCH] qt channels list: sort by short chan id by default --- electrum/gui/qt/channels_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index 883015af9..d342011cb 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -192,6 +192,7 @@ class ChannelsList(MyTreeView): items[self.Columns.LOCAL_BALANCE].setFont(QFont(MONOSPACE_FONT)) items[self.Columns.REMOTE_BALANCE].setFont(QFont(MONOSPACE_FONT)) self.model().insertRow(0, items) + self.sortByColumn(self.Columns.SHORT_CHANID, Qt.DescendingOrder) def update_can_send(self, lnworker): msg = _('Can send') + ' ' + self.parent.format_amount(lnworker.can_send())\