Update shortcut to the new folder

Also selects packages that require auth after successful authorization
This commit is contained in:
James Rowe 2019-11-07 10:28:09 -07:00
parent d79fd3e6e1
commit c176658e28
2 changed files with 6 additions and 3 deletions

View File

@ -47,6 +47,6 @@ is_new = true
repo = "earlyaccess" repo = "earlyaccess"
[[packages.shortcuts]] [[packages.shortcuts]]
name = "yuzu Early Access" name = "yuzu Early Access"
relative_path = "yuzu-windows-msvc/yuzu.exe" relative_path = "yuzu-windows-msvc-patreon/yuzu.exe"
description = "Launch yuzu Early Access" description = "Launch yuzu Early Access"

View File

@ -102,11 +102,14 @@ export default {
name: 'SelectPackages', name: 'SelectPackages',
created: function() { created: function() {
if (this.$root.$data.has_reward_tier) { if (this.$root.$data.has_reward_tier) {
for (var package_index = 0; package_index < app.config.packages.length; package_index++) { for (let package_index = 0; package_index < this.$root.config.packages.length; package_index++) {
var current_package = app.config.packages[package_index]; let current_package = this.$root.config.packages[package_index];
// If they are authorized, make the packages that require authorization default // If they are authorized, make the packages that require authorization default
if (current_package.requires_authorization) { if (current_package.requires_authorization) {
current_package.default = true; current_package.default = true;
} else {
// And unselect any other packages
current_package.default = false;
} }
} }
} }