From 5cd7d2b8b09015b50704acd458b1fe984ae13dae Mon Sep 17 00:00:00 2001 From: Huntereb Date: Sun, 10 Nov 2019 12:47:45 -0500 Subject: [PATCH] Fix selecting one nsp acting wonky --- source/ui/netInstPage.cpp | 3 +-- source/ui/nspInstPage.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/ui/netInstPage.cpp b/source/ui/netInstPage.cpp index 0236a72..6b96e2a 100755 --- a/source/ui/netInstPage.cpp +++ b/source/ui/netInstPage.cpp @@ -127,9 +127,8 @@ namespace inst::ui { } if ((Down & KEY_A) || (Up & KEY_TOUCH)) { netInstPage::selectNsp(this->menu->GetSelectedIndex()); - if (this->menu->GetItems().size() == 1) { + if (this->menu->GetItems().size() == 1 && netInstPage::selectedUrls.size() == 1) { netInstPage::startInstall(false); - netInstPage::selectNsp(this->menu->GetSelectedIndex()); } } if ((Down & KEY_Y)) { diff --git a/source/ui/nspInstPage.cpp b/source/ui/nspInstPage.cpp index af0c69f..ea0f8a5 100755 --- a/source/ui/nspInstPage.cpp +++ b/source/ui/nspInstPage.cpp @@ -79,9 +79,8 @@ namespace inst::ui { } if ((Down & KEY_A) || (Up & KEY_TOUCH)) { nspInstPage::selectNsp(this->menu->GetSelectedIndex()); - if (this->menu->GetItems().size() == 1) { + if (this->menu->GetItems().size() == 1 && nspInstPage::selectedNsps.size() == 1) { nspInstPage::startInstall(); - nspInstPage::selectNsp(this->menu->GetSelectedIndex()); } } if ((Down & KEY_Y)) {