mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CFileBrowser: use mbrYes as default selection
TODO: Re-evaluate the logic of current used messages with risky actions and adjust the buttons accordingly. Reason: <yes> is now as default assigned to green button (traffic light principle), and we use stricktly the order of colors from remote control (r,g,g,b), but in some cases it is useful to assign the <Yes> button to red for risky actions.
This commit is contained in:
@@ -800,7 +800,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::mbrNo, CMsgBox::mbYes|CMsgBox::mbNo)==CMsgBox::mbrYes)
|
||||
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, _msg.str(), CMsgBox::mbrYes, CMsgBox::mbNoYes)==CMsgBox::mbrYes)
|
||||
{
|
||||
std::string n = filelist[selected].Name;
|
||||
recursiveDelete(n.c_str());
|
||||
|
Reference in New Issue
Block a user