GYRO: added reset to configurator

This commit is contained in:
XargonWan 2024-02-17 09:33:18 +01:00
parent 937105914f
commit a1b9d83f1d

View file

@ -1057,12 +1057,12 @@ configurator_reset_dialog() {
--text="Which component do you want to reset to default?" \ --text="Which component do you want to reset to default?" \
--column="Component" --column="Action" \ --column="Component" --column="Action" \
"BoilR" "Reset BoilR that manages the sync and scraping toward Steam library" \ "BoilR" "Reset BoilR that manages the sync and scraping toward Steam library" \
"ES-DE" "Reset the ES-DE frontend" \ ) "ES-DE" "Reset the ES-DE frontend" \
# TODO: "GyroDSU" "Reset the gyroscope manager GyroDSU" "GyroDSU" "Reset the gyroscope manager GyroDSU" )
case $component_to_reset in case $component_to_reset in
"BoilR" | "ES-DE" ) # TODO: GyroDSU "BoilR" | "ES-DE" |"GyroDSU" )
if [[ $(configurator_reset_confirmation_dialog "$component_to_reset" "Are you sure you want to reset $component_to_reset to default settings?\n\nThis process cannot be undone.") == "true" ]]; then if [[ $(configurator_reset_confirmation_dialog "$component_to_reset" "Are you sure you want to reset $component_to_reset to default settings?\n\nThis process cannot be undone.") == "true" ]]; then
prepare_component "reset" "$component_to_reset" "configurator" prepare_component "reset" "$component_to_reset" "configurator"
configurator_process_complete_dialog "resetting $component_to_reset" configurator_process_complete_dialog "resetting $component_to_reset"