mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user