mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-30 17:45:42 +00:00
Ensure all_systems array is empty every time build_preset_list_options() is run
- This prevents all_systems array from having multiple copies of all systems when run multiple times in the same session, which would cause make_preset_changes() to run build_preset_config() multiple times.
This commit is contained in:
parent
c8c5e2ba41
commit
880c4b8213
|
@ -49,6 +49,7 @@ build_preset_list_options() {
|
||||||
current_disabled_systems=()
|
current_disabled_systems=()
|
||||||
changed_systems=()
|
changed_systems=()
|
||||||
changed_presets=()
|
changed_presets=()
|
||||||
|
all_systems=()
|
||||||
local section_results=$(sed -n '/\['"$preset"'\]/, /\[/{ /\['"$preset"'\]/! { /\[/! p } }' $rd_conf | sed '/^$/d')
|
local section_results=$(sed -n '/\['"$preset"'\]/, /\[/{ /\['"$preset"'\]/! { /\[/! p } }' $rd_conf | sed '/^$/d')
|
||||||
|
|
||||||
while IFS= read -r config_line
|
while IFS= read -r config_line
|
||||||
|
|
Loading…
Reference in a new issue