From 178a5357136a225136691c78216536d7897ecba6 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 13 Feb 2024 00:29:22 +0100 Subject: container: allow dismissing loadinfo it broke line info in console since it's never fully loaded --- src/local/pager.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/local/pager.nim') diff --git a/src/local/pager.nim b/src/local/pager.nim index 50591ee3..0744a151 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -318,8 +318,9 @@ proc refreshStatusMsg*(pager: Pager) = elif pager.inputBuffer != "": pager.writeStatusMessage(pager.inputBuffer) elif container.loadinfo != "": - pager.alerton = false + pager.alerton = true pager.writeStatusMessage(container.loadinfo) + container.loadinfo = "" elif pager.alerts.len > 0: pager.alerton = true pager.writeStatusMessage(pager.alerts[0]) @@ -1261,7 +1262,7 @@ proc handleEvent0(pager: Pager, container: Container, event: ContainerEvent): bo of INVALID_COMMAND: discard of STATUS: if pager.container == container: - pager.showAlerts() + pager.refreshStatusMsg() of TITLE: if pager.container == container: pager.showAlerts() -- cgit 1.4.1-2-gfad0