From 3ccc380c2b56747cf579947ade02f888723222d3 Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Sat, 3 Dec 2016 02:22:59 +0000 Subject: [PATCH] added confirmation to "CONFIGURE INPUT". fixes #75 --- es-app/src/guis/GuiMenu.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 032706b93..d005fc04e 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -184,8 +184,13 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MEN }); addEntry("CONFIGURE INPUT", 0x777777FF, true, - [this] { - mWindow->pushGui(new GuiDetectDevice(mWindow, false, nullptr)); + [this] { + Window* window = mWindow; + window->pushGui(new GuiMsgBox(window, "ARE YOU SURE YOU WANT TO CONFIGURE INPUT?", "YES", + [window] { + window->pushGui(new GuiDetectDevice(window, false, nullptr)); + }, "NO", nullptr) + ); }); addEntry("QUIT", 0x777777FF, true,