diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c39bec..8ac7951 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ * Up to date +## [2.1.4] - 2019-02-14 + +### Fixed + +* The script won't ask anymore to restart EmulationStation (if it's running) when debug mode is on. + ## [2.1.3] - 2018-12-23 ### Fixed diff --git a/retropie-limit-last-played-games.sh b/retropie-limit-last-played-games.sh index a77ca86..55b62ab 100755 --- a/retropie-limit-last-played-games.sh +++ b/retropie-limit-last-played-games.sh @@ -193,6 +193,7 @@ function reset_playcount() { echo "> Done!" # Games to show in 'last played' section. log "Games that will be shown in the 'last played' section:" + echo "" for last_played_item in "${last_played_array[@]:0:$NTH_LAST_PLAYED}"; do local game_name game_name="$last_played_item" @@ -398,12 +399,15 @@ function main() { text+="Check the log file in '$LOG_DIR'." dialog_msgbox "Info" "$text" "$dialog_height" fi - # Check if EmulationStation is running - if pidof emulationstation > /dev/null; then - dialog_yesno "Info" "In order to see the changes applied to the game lists, EmulationStation need to be restarted.\n\nWould you like to restart EmulationStation?" - local return_value="$?" - if [[ "$return_value" -eq "$DIALOG_OK" ]]; then - restart_ES + + if [[ "$DEBUG_FLAG" -eq 0 ]]; then + # Check if EmulationStation is running + if pidof emulationstation > /dev/null; then + dialog_yesno "Info" "In order to see the changes applied to the game lists, EmulationStation need to be restarted.\n\nWould you like to restart EmulationStation?" + local return_value="$?" + if [[ "$return_value" -eq "$DIALOG_OK" ]]; then + restart_ES + fi fi fi }