Merge pull request #3787 from joolswills/config_save

only save config when menu_show_start_screen is enabled if config_save_on_exit is also enabled
This commit is contained in:
Twinaphex 2016-10-14 16:27:38 +02:00 committed by GitHub
commit 125bf24aed

View File

@ -182,7 +182,8 @@ static bool menu_init(menu_handle_t *menu_data)
{ {
menu_dialog_push_pending(true, MENU_DIALOG_WELCOME); menu_dialog_push_pending(true, MENU_DIALOG_WELCOME);
settings->menu_show_start_screen = false; settings->menu_show_start_screen = false;
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL); if (settings->config_save_on_exit)
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
} }
if ( settings->bundle_assets_extract_enable if ( settings->bundle_assets_extract_enable