home · contact · privacy
Trigger TUI's .redraw_affected also on tui_alert_trigger (previously bypassing it).
authorChristian Heller <c.heller@plomlompom.de>
Sat, 4 Oct 2025 13:31:06 +0000 (15:31 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 4 Oct 2025 13:31:06 +0000 (15:31 +0200)
src/ircplom/client_tui.py

index ccef305c2666d8fccb86c884e419286c7c6495ce..804a837727e1de0d726b6b8ea27ef00def2f951b 100644 (file)
@@ -460,6 +460,7 @@ class ClientKnowingTui(Client):
     def _tui_alert_trigger(self, msg: str) -> None:
         self._tui_trigger('log', msg=msg, prefix=_LOG_PREFIX_SERVER,
                           alert=True)
+        self._tui_trigger('redraw_affected')
 
     def _client_tui_trigger(self, todo: str, **kwargs) -> None:
         self._tui_trigger('for_client_do', client_id=self.client_id,
@@ -569,6 +570,7 @@ class ClientTui(BaseTui):
                     win_cls, _q_out=self._q_out, client_id=client_id, **kw),
                 path_logs=self._path_logs, to_highlight=self._to_highlight)
         if getattr(self._client_mngrs[client_id], todo)(**kwargs) is not False:
+            # NB: ClientWindowsManager.log()'s None also matches "is not False"
             self.redraw_affected()
 
     def _new_client(self, conn_setup: IrcConnSetup, channels: set[str]):