disable new_channel call for now as channel is otherwise added twice
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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']:
|
||||||
|
|||||||
Reference in New Issue
Block a user