URI: 
       twallet set_tx_label_based_on_invoices: don't overwrite custom label - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 6d86f4dc18faaafd9f184c97c3433ec3313c7d69
   DIR parent 55eb62bb90df64c6e6ba21c8b77396100cd13d63
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Mon, 31 Aug 2020 22:00:52 +0200
       
       wallet set_tx_label_based_on_invoices: don't overwrite custom label
       
       related: #6545
       
       Diffstat:
         M electrum/wallet.py                  |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/wallet.py b/electrum/wallet.py
       t@@ -823,7 +823,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
                for invoice in self.get_relevant_invoices_for_tx(tx):
                    if invoice.message:
                        labels.append(invoice.message)
       -        if labels:
       +        if labels and not self.labels.get(tx_hash, ''):
                    self.set_label(tx_hash, "; ".join(labels))
                return bool(labels)