From: Christian Heller Date: Thu, 14 Aug 2025 10:29:01 +0000 (+0200) Subject: In TUI ignore confirmations of anything but the nickname field. X-Git-Url: https://plomlompom.com/repos/booking/static/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/balance2?a=commitdiff_plain;p=ircplom In TUI ignore confirmations of anything but the nickname field. --- diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index aa3b2d8..d568a6c 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -176,7 +176,8 @@ class _ClientWindowsManager: 'Apply settings in kwargs, follow representation update triggers.' changes = self._db.set(key, value, confirmed) for i, t in enumerate((('', value), ('confirmation of ', confirmed))): - if changes[i]: + if changes[i] and (i == 0 # re confirms only care about nickname + or key == 'nickname'): announcement = f'changing {t[0]}{key} to:' if isinstance(t[1], list): self.log(announcement, scope=scope)