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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: f9f03c1d31
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-09 (Thu, 09 May 2019)



------------------
This commit was generated by Migit
This commit is contained in:
2019-05-09 00:05:58 +02:00
committed by vanhofen
parent f5d882dda2
commit d094619004
5 changed files with 16 additions and 0 deletions

View File

@@ -605,9 +605,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)