fix message popup accidental navigation bug

This commit is contained in:
pelgraine
2026-02-10 14:59:30 +11:00
parent 2972d1ffb4
commit 87a5f185d3

View File

@@ -651,8 +651,8 @@ switch(t){
void UITask::msgRead(int msgcount) {
_msgcount = msgcount;
if (msgcount == 0) {
gotoHomeScreen();
if (msgcount == 0 && curr == msg_preview) {
gotoHomeScreen(); // only leave msg_preview when queue is empty
}
}