diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-11 21:59:56 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-11 22:02:35 +0100 |
commit | 5e2d67cdd5ad4220426b19592ddf2f827af75f0b (patch) | |
tree | e6fd6fb753ac8ba6074018497f3e897fe4ee4ead /src | |
parent | b789b0b076ef7aba3f5f6bbb4f6b7cadf596994c (diff) | |
download | chawan-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.nim | 1 | ||||
-rw-r--r-- | src/local/pager.nim | 2 |
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) |