mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
fix(ui): lines and outlines follow the pixel scale on the 4.26" e-ink, opening a conversation no longer re-anchors on its second frame
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1085,9 +1085,12 @@ void UITask::loop() {
|
||||
#endif
|
||||
pollConnection(); // BLE link state -> hasConnection() (see UITaskBase)
|
||||
drainCoreEvents(); // react to what the Core filed during mesh processing (alerts, wake, sounds)
|
||||
{ // a conversation in view again (display on, unlocked): on to what came in meanwhile
|
||||
bool on = messagesInView();
|
||||
if (on && !_display_was_on) ((MessagesScreen*)messages_screen)->onDisplayOn();
|
||||
{ // a conversation in view again (display on, unlocked): on to what came in meanwhile.
|
||||
// Only on the display or lock changing -- not on opening the screen, which
|
||||
// positions itself (a second pass would re-anchor on what the first frame
|
||||
// had just marked read, and the list jumped).
|
||||
bool on = _display && _display->isOn() && !_locked;
|
||||
if (on && !_display_was_on && curr == messages_screen) ((MessagesScreen*)messages_screen)->onDisplayOn();
|
||||
_display_was_on = on;
|
||||
}
|
||||
if (status_screen) ((StatusScreen*)status_screen)->sample(); // Status history lines, once a minute
|
||||
|
||||
Reference in New Issue
Block a user