1
0

qml: visually dim channels in CLOSED and REDEEMED states, apply simple sort on channel state

to put channels in closed/redeemed state at bottom of list
This commit is contained in:
Sander van Grieken
2022-07-20 10:30:48 +02:00
parent 0cc22931d8
commit 802246251f
3 changed files with 35 additions and 7 deletions

View File

@@ -6,15 +6,21 @@ from electrum.i18n import _
from electrum.gui import messages
from electrum.logging import get_logger
from electrum.lnutil import LOCAL, REMOTE
from electrum.lnchannel import ChanCloseOption
from electrum.lnchannel import ChanCloseOption, ChannelState
from .qewallet import QEWallet
from .qetypes import QEAmount
from .util import QtEventListener, qt_event_listener, event_listener
class QEChannelDetails(QObject, QtEventListener):
_logger = get_logger(__name__)
class State: # subset, only ones we currently need in UI
Closed = ChannelState.CLOSED
Redeemed = ChannelState.REDEEMED
Q_ENUMS(State)
_wallet = None
_channelid = None
_channel = None