From c7f240bb5b6e4531c305cd59d0f3b5642d5ffc62 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 21 Jan 2026 09:06:50 +0000 Subject: [PATCH] xmrwallet.ops.label:main(): remove `auto` param --- mmgen/proto/xmr/tw/ctl.py | 2 +- mmgen/xmrwallet/ops/label.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mmgen/proto/xmr/tw/ctl.py b/mmgen/proto/xmr/tw/ctl.py index 26e0d287..b28999c4 100755 --- a/mmgen/proto/xmr/tw/ctl.py +++ b/mmgen/proto/xmr/tw/ctl.py @@ -42,4 +42,4 @@ class MoneroTwCtl(TwCtlWithStore): spec = f'{m.idx}:{m.acct_idx}:{m.addr_idx},{comment}', compat_call = True) await op.restart_wallet_daemon() - return await op.main(add_timestr=add_timestr, auto=True) + return await op.main(add_timestr=add_timestr) diff --git a/mmgen/xmrwallet/ops/label.py b/mmgen/xmrwallet/ops/label.py index 73fb19d3..6595c1ea 100755 --- a/mmgen/xmrwallet/ops/label.py +++ b/mmgen/xmrwallet/ops/label.py @@ -29,7 +29,7 @@ class OpLabel(OpMixinSpec, OpWallet): opts = () wallet_offline = True - async def main(self, add_timestr='ask', auto=False): + async def main(self, add_timestr='ask'): if not self.compat_call: gmsg('\n{a} label for wallet {b}, account #{c}, address #{d}'.format( @@ -61,7 +61,7 @@ class OpLabel(OpMixinSpec, OpWallet): (self.label + (f' [{make_timestr()}]' if add_timestr else '')) if self.label else '') - if not auto: + if not self.compat_call: ca = CoinAddr(self.proto, addr['address']) from . import addr_width msg('\n {a} {b}\n {c} {d}\n {e} {f}'.format( @@ -76,7 +76,7 @@ class OpLabel(OpMixinSpec, OpWallet): if addr['label'] == new_label: ymsg('\nLabel is unchanged, operation cancelled') - elif auto or keypress_confirm(self.cfg, f' {op.capitalize()} label?'): + elif self.compat_call or keypress_confirm(self.cfg, f' {op.capitalize()} label?'): h.set_label(self.account, self.address_idx, new_label) ret = h.print_acct_addrs(h.get_wallet_data(print=False), self.account) label_chk = ret[self.address_idx]['label']