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

@@ -2035,6 +2035,7 @@ moviebrowser.menu_save Veränderungen speichern
moviebrowser.menu_save_all Starte Übernahme in allen sichtbaren Filminfos
moviebrowser.menu_settings Einstellungen
moviebrowser.menu_truncate Film kürzen
moviebrowser.message_keep_storage_settings Sollen die Depot-Einstellungen für verwendete und aktivierte Verzeichnisse beibehalten werden?
moviebrowser.option_browser Anzeigeoptionen
moviebrowser.reload_at_start Filminfos neu laden bei Start
moviebrowser.remount_at_start Filmdepot verbinden bei Start

View File

@@ -2035,6 +2035,7 @@ moviebrowser.menu_save Save changes
moviebrowser.menu_save_all Start update of movie info files
moviebrowser.menu_settings Settings
moviebrowser.menu_truncate Truncate movie
moviebrowser.message_keep_storage_settings Do You want to keep storage settings for used and enabled directories?
moviebrowser.option_browser Browser Options
moviebrowser.reload_at_start Reload movie info at start
moviebrowser.remount_at_start Remount at start

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)

View File

@@ -2062,6 +2062,7 @@ typedef enum
LOCALE_MOVIEBROWSER_MENU_SAVE_ALL,
LOCALE_MOVIEBROWSER_MENU_SETTINGS,
LOCALE_MOVIEBROWSER_MENU_TRUNCATE,
LOCALE_MOVIEBROWSER_MESSAGE_KEEP_STORAGE_SETTINGS,
LOCALE_MOVIEBROWSER_OPTION_BROWSER,
LOCALE_MOVIEBROWSER_RELOAD_AT_START,
LOCALE_MOVIEBROWSER_REMOUNT_AT_START,

View File

@@ -2062,6 +2062,7 @@ const char * locale_real_names[] =
"moviebrowser.menu_save_all",
"moviebrowser.menu_settings",
"moviebrowser.menu_truncate",
"moviebrowser.message_keep_storage_settings",
"moviebrowser.option_browser",
"moviebrowser.reload_at_start",
"moviebrowser.remount_at_start",