URI: 
       tgui channels_list fixes - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 669b84fbd68a8ea56d91053dd7a39143e4b1e310
   DIR parent 32e517f4071fc3bf721159cb3c6ed9e148a13589
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 23 May 2019 11:58:25 +0200
       
       gui channels_list fixes
       
       Diffstat:
         M electrum/gui/qt/channels_list.py    |       9 ++++-----
       
       1 file changed, 4 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py
       t@@ -9,7 +9,7 @@ from electrum.i18n import _
        from electrum.lnchannel import Channel
        from electrum.lnutil import LOCAL, REMOTE, ConnStringFormatError
        
       -from .util import MyTreeView, WindowModalDialog, Buttons, OkButton, CancelButton, EnterButton, WWLabel
       +from .util import MyTreeView, WindowModalDialog, Buttons, OkButton, CancelButton, EnterButton, WWLabel, WaitingDialog
        from .amountedit import BTCAmountEdit
        from .channel_details import ChannelDetailsDialog
        
       t@@ -44,15 +44,15 @@ class ChannelsList(MyTreeView):
                    chan.get_state()
                ]
        
       -    def on_success(txid):
       +    def on_success(self, txid):
                self.main_window.show_error('Channel closed' + '\n' + txid)
        
       -    def on_failure(exc_info):
       +    def on_failure(self, exc_info):
                type_, e, tb = exc_info
                traceback.print_tb(tb)
                self.main_window.show_error('Failed to close channel:\n{}'.format(repr(e)))
        
       -    def close(self, channel_id):
       +    def close_channel(self, channel_id):
                def task():
                    coro = self.lnworker.close_channel(channel_id)
                    return self.network.run_from_another_thread(coro)
       t@@ -70,7 +70,6 @@ class ChannelsList(MyTreeView):
                    self.lnworker.remove_channel(channel_id)
        
            def create_menu(self, position):
       -        from .util import WaitingDialog
                menu = QMenu()
                idx = self.selectionModel().currentIndex()
                item = self.model().itemFromIndex(idx)