mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
reworked uninstall
This commit is contained in:
parent
b615b35f84
commit
a3589e9ec1
@ -546,9 +546,10 @@ if [[ $options == "Start Fresh" ]] || [[ $selected_launchers == "Start Fresh" ]]
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if any arguments were passed
|
||||||
if [[ ${#args[@]} -eq 0 ]]; 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,18 +572,14 @@ if [[ ${#args[@]} -eq 0 ]]; then
|
|||||||
FALSE "Playstation Plus"\
|
FALSE "Playstation Plus"\
|
||||||
FALSE "VK Play")
|
FALSE "VK Play")
|
||||||
else
|
else
|
||||||
# Arguments were passed, use them as options
|
# Arguments were passed, use them as options
|
||||||
options="${args[@]}" # The args are the selected options
|
action="${args[0]}"
|
||||||
fi
|
unset 'args[0]' # Remove the action from the args array
|
||||||
|
options="${args[@]}" # The remaining args are the selected options
|
||||||
# Check if the options contain "Uninstall"
|
|
||||||
if [[ $options == *"Uninstall"* ]]; then
|
|
||||||
# Remove "Uninstall" from the options
|
|
||||||
options=${options//Uninstall/}
|
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user