From c176658e283a831b8c3e59965748f34019020bd5 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 7 Nov 2019 10:28:09 -0700 Subject: [PATCH] Update shortcut to the new folder Also selects packages that require auth after successful authorization --- config.windows.patreon.toml | 2 +- ui/src/views/SelectPackages.vue | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.windows.patreon.toml b/config.windows.patreon.toml index 314bcef..1ea1697 100644 --- a/config.windows.patreon.toml +++ b/config.windows.patreon.toml @@ -47,6 +47,6 @@ is_new = true repo = "earlyaccess" [[packages.shortcuts]] name = "yuzu Early Access" - relative_path = "yuzu-windows-msvc/yuzu.exe" + relative_path = "yuzu-windows-msvc-patreon/yuzu.exe" description = "Launch yuzu Early Access" diff --git a/ui/src/views/SelectPackages.vue b/ui/src/views/SelectPackages.vue index 34ce32b..00fa00f 100644 --- a/ui/src/views/SelectPackages.vue +++ b/ui/src/views/SelectPackages.vue @@ -102,11 +102,14 @@ export default { name: 'SelectPackages', created: function() { if (this.$root.$data.has_reward_tier) { - for (var package_index = 0; package_index < app.config.packages.length; package_index++) { - var current_package = app.config.packages[package_index]; + for (let package_index = 0; package_index < this.$root.config.packages.length; package_index++) { + let current_package = this.$root.config.packages[package_index]; // If they are authorized, make the packages that require authorization default if (current_package.requires_authorization) { current_package.default = true; + } else { + // And unselect any other packages + current_package.default = false; } } }