fix(startup): trigger UIEnter for the correct channel (#25860)

This commit is contained in:
zeertzjq
2023-11-01 12:16:37 +08:00
committed by GitHub
parent 4e6096a67f
commit d7359a8742
5 changed files with 36 additions and 23 deletions

View File

@@ -2570,6 +2570,9 @@ void do_autocmd_uienter(uint64_t chanid, bool attached)
{
static bool recursive = false;
if (starting == NO_SCREEN) {
return; // user config hasn't been sourced yet
}
if (recursive) {
return; // disallow recursion
}