Send exit command when returning to main menu from a USB install

This commit is contained in:
Huntereb 2020-09-21 00:20:35 -04:00
parent b181a9183c
commit e15331b7a1

View file

@ -3,6 +3,7 @@
#include "util/util.hpp"
#include "util/config.hpp"
#include "util/lang.hpp"
#include "util/usb_util.hpp"
#include "usbInstall.hpp"
@ -102,6 +103,7 @@ namespace inst::ui {
void usbInstPage::onInput(u64 Down, u64 Up, u64 Held, pu::ui::Touch Pos) {
if (Down & KEY_B) {
tin::util::USBCmdManager::SendExitCmd();
mainApp->LoadLayout(mainApp->mainPage);
}
if ((Down & KEY_A) || (Up & KEY_TOUCH)) {