Skip to content

[BUG] Don't add shortcut for DLCs. Fix adding sideload app shortcuts #2778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2023

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Jun 4, 2023

This PR fixes two issues:

  • Heroic was adding shortcuts for DLCs, but in general launching a DLC directly wouldn't work.
  • Shortcuts creation/deletion failed for sideloaded apps

This fixes #2756


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@arielj arielj added the pr:ready-for-review Feature-complete, ready for the grind! :P label Jun 4, 2023
@arielj arielj requested review from a team, flavioislima, CommandMC, Nocccer and imLinguin and removed request for a team June 4, 2023 04:08
@@ -125,7 +126,7 @@ export async function uninstall({

notify({ title, body: i18next.t('notify.uninstalled') })

removeShortcuts(appName)
removeShortcutsUtil(gameInfo)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have the gameInfo here, no need to call the function that looks for the gameInfo

@@ -59,7 +60,7 @@ export function addNewApp({
current[gameIndex] = { ...current[gameIndex], ...game }
} else {
current.push(game)
addShortcuts(app_name)
addShortcuts(game)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have the gameInfo here, no need to call the function that looks for the gameInfo

@@ -27,7 +27,8 @@ export function addNewApp({
title,
install: {
executable,
platform
platform,
is_dlc: false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mark it as not DLC just to be explicit since now we check if is_dlc is true to ignore the shortcuts

Copy link
Member

@imLinguin imLinguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing that 👍🏽

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing that 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in backend after adding sideloaded app
3 participants