mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 12:44:40 +00:00
Fixed screen reset
This commit is contained in:
parent
f0c2da337e
commit
c872f64a75
@ -600,9 +600,16 @@ bool CannedMessageModule::handleMessageSelectorInput(const InputEvent *event, bo
|
|||||||
ChannelIndex chan = channel;
|
ChannelIndex chan = channel;
|
||||||
#if CANNED_MESSAGE_ADD_CONFIRMATION
|
#if CANNED_MESSAGE_ADD_CONFIRMATION
|
||||||
graphics::menuHandler::showConfirmationBanner("Send message?", [this, destNode, chan, current]() {
|
graphics::menuHandler::showConfirmationBanner("Send message?", [this, destNode, chan, current]() {
|
||||||
// this->sendText(destNode, chan, current, false);
|
this->sendText(destNode, chan, current, false);
|
||||||
payload = runState;
|
payload = runState;
|
||||||
runState = CANNED_MESSAGE_RUN_STATE_ACTION_SELECT;
|
runState = CANNED_MESSAGE_RUN_STATE_INACTIVE;
|
||||||
|
currentMessageIndex = -1;
|
||||||
|
|
||||||
|
// Notify UI to regenerate frame set and redraw
|
||||||
|
UIFrameEvent e;
|
||||||
|
e.action = UIFrameEvent::Action::REGENERATE_FRAMESET;
|
||||||
|
notifyObservers(&e);
|
||||||
|
screen->forceDisplay();
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
payload = runState;
|
payload = runState;
|
||||||
|
Loading…
Reference in New Issue
Block a user