xmrwallet.ops.label:main(): remove auto param

This commit is contained in:
The MMGen Project 2026-01-21 09:06:50 +00:00
commit c7f240bb5b
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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']