about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-11 21:59:56 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-11 22:02:35 +0100
commit5e2d67cdd5ad4220426b19592ddf2f827af75f0b (patch)
treee6fd6fb753ac8ba6074018497f3e897fe4ee4ead /src
parentb789b0b076ef7aba3f5f6bbb4f6b7cadf596994c (diff)
downloadchawan-5e2d67cdd5ad4220426b19592ddf2f827af75f0b.tar.gz
pager: do not eat error alerts on startup
cetStatus is only called for soft status updates, not alerts (we have
cetAlert for that)
Diffstat (limited to 'src')
-rw-r--r--src/local/container.nim1
-rw-r--r--src/local/pager.nim2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index d7ee5c64..9b26f9e5 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -1347,7 +1347,6 @@ proc onload*(container: Container, res: int) =
   elif res == -1:
     container.loadState = lsLoaded
     container.setLoadInfo("")
-    container.triggerEvent(cetStatus)
     container.needslines = true
     container.triggerEvent(cetLoaded)
     container.iface.getTitle().then(proc(title: string) =
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 51c2f89f..24f1ad0f 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1461,7 +1461,7 @@ proc handleEvent0(pager: Pager; container: Container; event: ContainerEvent):
         referrer = pager.container)
   of cetStatus:
     if pager.container == container:
-      pager.refreshStatusMsg()
+      pager.showAlerts()
   of cetSetLoadInfo:
     if pager.container == container:
       pager.onSetLoadInfo(container)