Skip to content

Commit

Permalink
Additional checks for closing Scan&Select canned frame
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfisk authored and caveman99 committed Sep 6, 2024
1 parent 27f00cd commit d983ca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphics/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,9 @@ void Screen::handleOnPress()
{
// If Canned Messages is using the "Scan and Select" input, dismiss the canned message frame when user button is pressed
// Minimize impact as a courtesy, as "scan and select" may be used as default config for some boards
if (scanAndSelectInput != nullptr && scanAndSelectInput->dismissCannedMessageFrame())
// (Fall-through if using auto carousel, to prevent unexpected closing of canned message frame)
if (scanAndSelectInput != nullptr && !config.display.auto_screen_carousel_secs &&
scanAndSelectInput->dismissCannedMessageFrame())
return;

// Don't transition away from canned messages if it is active
Expand Down

0 comments on commit d983ca5

Please sign in to comment.