Skip to content

Commit

Permalink
filebrowser/testmenu: switch Yes/No
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Mar 21, 2024
1 parent b2ba5bf commit dead463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/filebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ bool CFileBrowser::exec(const char * const dirname)
_msg << filelist[selected].getFileName();

_msg << " " << g_Locale->getText(LOCALE_FILEBROWSER_DODELETE2);
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, _msg.str(), CMsgBox::mbrYes, CMsgBox::mbNoYes)==CMsgBox::mbrYes)
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, _msg.str(), CMsgBox::mbrYes, CMsgBox::mbYesNo)==CMsgBox::mbrYes)
{
std::string n = filelist[selected].Name;
recursiveDelete(n.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/gui/test_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
return menu_return::RETURN_REPAINT;
}
else if (actionKey == "msgbox_test_no_yes"){
int msgRet = ShowMsg("Testmenu: MsgBox test", "Test for MsgBox,\nPlease press key! ...", CMsgBox::mbrOk, CMsgBox::mbNoYes, NULL, 500);
int msgRet = ShowMsg("Testmenu: MsgBox test", "Test for MsgBox,\nPlease press key! ...", CMsgBox::mbrOk, CMsgBox::mbYesNo, NULL, 500);

std::string msg_txt = "Return value of MsgBox test is ";
msg_txt += to_string(msgRet);
Expand Down

0 comments on commit dead463

Please sign in to comment.