Skip to content

Commit

Permalink
added Uninstall command lines for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored May 4, 2024
1 parent aeebd08 commit b615b35
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ if [[ $options == "Start Fresh" ]] || [[ $selected_launchers == "Start Fresh" ]]
fi
fi

if [[ $options == "Uninstall" ]]; then
if [[ ${#args[@]} -eq 0 ]]; then
# Check if the cancel button was clicked
# The OK button was not clicked
# Define the launcher options
Expand All @@ -570,6 +570,17 @@ if [[ $options == "Uninstall" ]]; then
FALSE "Minecraft"\
FALSE "Playstation Plus"\
FALSE "VK Play")
else
# Arguments were passed, use them as options
options="${args[@]}" # The args are the selected options
fi

# Check if the options contain "Uninstall"
if [[ $options == *"Uninstall"* ]]; then
# Remove "Uninstall" from the options
options=${options//Uninstall/}
fi


if [[ $options != "" ]]; then
# The Uninstall button was clicked
Expand Down

0 comments on commit b615b35

Please sign in to comment.