Browse Source

disable new_channel call for now as channel is otherwise added twice

master
Sander van Grieken 4 years ago
parent
commit
6fecf5b962
  1. 2
      electrum/gui/qml/components/OpenChannel.qml
  2. 2
      electrum/gui/qml/qechannellistmodel.py

2
electrum/gui/qml/components/OpenChannel.qml

@ -179,7 +179,7 @@ Pane {
message = message + ' (but no backup. TODO: show QR)' message = message + ' (but no backup. TODO: show QR)'
var dialog = app.messageDialog.createObject(root, { 'text': message }) var dialog = app.messageDialog.createObject(root, { 'text': message })
dialog.open() dialog.open()
channelopener.wallet.channelModel.new_channel(cid) // channelopener.wallet.channelModel.new_channel(cid)
app.stack.pop() app.stack.pop()
} }
} }

2
electrum/gui/qml/qechannellistmodel.py

@ -140,6 +140,7 @@ class QEChannelListModel(QAbstractListModel):
@pyqtSlot(str) @pyqtSlot(str)
def new_channel(self, cid): def new_channel(self, cid):
self._logger.debug('new channel with cid ' % cid)
lnchannels = self.wallet.lnworker.channels lnchannels = self.wallet.lnworker.channels
for channel in lnchannels.values(): for channel in lnchannels.values():
self._logger.debug(repr(channel)) self._logger.debug(repr(channel))
@ -152,6 +153,7 @@ class QEChannelListModel(QAbstractListModel):
@pyqtSlot(str) @pyqtSlot(str)
def remove_channel(self, cid): def remove_channel(self, cid):
self._logger.debug('remove channel with cid ' % cid)
i = 0 i = 0
for channel in self.channels: for channel in self.channels:
if cid == channel['cid']: if cid == channel['cid']:

Loading…
Cancel
Save