moviebrowser: add interim message while reset to default settings

It's not always a good idea to reset all mb settings. From own experience
it is often not wanted and irritatingly when storage settings will be lost.
This commit is contained in:
2019-05-08 09:11:40 +02:00
parent 734d0a3634
commit 30fb240036
5 changed files with 16 additions and 0 deletions

View File

@@ -600,9 +600,21 @@ void CMovieBrowser::initRows(void)
void CMovieBrowser::defaultSettings(MB_SETTINGS* /*settings*/)
{
MBStorageSettings tmp_store;
bool keep = false;
if (ShowMsg(LOCALE_MOVIEBROWSER_LOAD_DEFAULT, LOCALE_MOVIEBROWSER_MESSAGE_KEEP_STORAGE_SETTINGS, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_QUESTION) == CMsgBox::mbrYes)
{
tmp_store = m_settings.store;
keep = true;
}
unlink(MOVIEBROWSER_SETTINGS_FILE);
configfile.clear();
initGlobalSettings();
if (keep)
m_settings.store = tmp_store;
}
bool CMovieBrowser::loadSettings(MB_SETTINGS* settings)