From aa81278cfb939e14ac4924fa876859a686ff5c3e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 4 Oct 2021 16:43:42 +0200 Subject: [PATCH] testmenu: fix action key value, typo --- src/gui/test_menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index efde48b41..e753e4cca 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1010,8 +1010,8 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) DisplayInfoMessage("Info Test!"); return menu_return::RETURN_REPAINT; } - else if (actionKey == "short_hint with sleep and CHint instance"){ - CHint *hint = new CHint("Info Test!"); + else if (actionKey == "short_hint"){ + CHint *hint = new CHint("Short hint with sleep and CHint instance"); // Set the message window outside of screen mid to demonstrate the hide behavior, // so that the hide behavior will not be influenced by any other window or menu. hint->setPos(10, 10); @@ -1093,7 +1093,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) } else if (actionKey == "footer_key"){ CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, "Footer-Key pressed. Press EXIT to return", 350, NULL, NULL, CComponentsHeader::CC_BTN_EXIT); - hintBox.setTimeOut(15); + hintBox.setTimeOut(15, true); //optional: it is also possible to add more items into the hint box //here some examples: