From c61d120d9405f8936861c2d8c8ab537569005bb4 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 5 Oct 2026 14:30:05 +0000 Subject: [PATCH] tw.addresses: add `autochg_ignore_labels` attr --- mmgen/tw/addresses.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmgen/tw/addresses.py b/mmgen/tw/addresses.py index 0a112fe2..3cc1c1f1 100755 --- a/mmgen/tw/addresses.py +++ b/mmgen/tw/addresses.py @@ -34,6 +34,7 @@ class TwAddresses(TwView): showempty = True showused = 1 # tristate: 0: no, 1: yes, 2: only all_labels = False + autochg_ignore_labels = False # if set, this overrides the global cfg var of the same name mod_subpath = 'tw.addresses' prompt_fs_in = [ @@ -388,9 +389,10 @@ class TwAddresses(TwView): and not d.twmmid in exclude and ( self.cfg.autochg_ignore_labels or + self.autochg_ignore_labels or not d.comment) ): - if d.comment: + if d.comment and not self.autochg_ignore_labels: msg('{} {} {} {}{}'.format( yellow('WARNING: address'), d.twmmid.hl(),