reverted uninstall

This commit is contained in:
Roy 2024-05-04 01:50:58 -07:00 committed by GitHub
parent a3589e9ec1
commit 2032e0babf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -546,10 +546,9 @@ if [[ $options == "Start Fresh" ]] || [[ $selected_launchers == "Start Fresh" ]]
fi fi
fi fi
# Check if any arguments were passed if [[ $options == "Uninstall" ]]; then
if [[ ${#args[@]} -eq 0 ]]; then # Check if the cancel button was clicked
# No arguments were passed, use Zenity # The OK button was not clicked
action="Uninstall"
# Define the launcher options # Define the launcher options
options=$(zenity --list --checklist \ options=$(zenity --list --checklist \
--title="Uninstall Launchers" \ --title="Uninstall Launchers" \
@ -571,15 +570,8 @@ if [[ ${#args[@]} -eq 0 ]]; then
FALSE "Minecraft"\ FALSE "Minecraft"\
FALSE "Playstation Plus"\ FALSE "Playstation Plus"\
FALSE "VK Play") FALSE "VK Play")
else
# Arguments were passed, use them as options
action="${args[0]}"
unset 'args[0]' # Remove the action from the args array
options="${args[@]}" # The remaining args are the selected options
fi
if [[ $options != "" ]]; then
if [[ $action == "Uninstall" ]]; then
# The Uninstall button was clicked # The Uninstall button was clicked
# Add code here to handle the uninstallation of the selected launcher(s) # Add code here to handle the uninstallation of the selected launcher(s)
if [[ $options == *"Epic Games"* ]]; then if [[ $options == *"Epic Games"* ]]; then