mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-10 06:04:20 +00:00
Fix selecting one nsp acting wonky
This commit is contained in:
parent
1374370c78
commit
5cd7d2b8b0
2 changed files with 2 additions and 4 deletions
|
@ -127,9 +127,8 @@ namespace inst::ui {
|
||||||
}
|
}
|
||||||
if ((Down & KEY_A) || (Up & KEY_TOUCH)) {
|
if ((Down & KEY_A) || (Up & KEY_TOUCH)) {
|
||||||
netInstPage::selectNsp(this->menu->GetSelectedIndex());
|
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::startInstall(false);
|
||||||
netInstPage::selectNsp(this->menu->GetSelectedIndex());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((Down & KEY_Y)) {
|
if ((Down & KEY_Y)) {
|
||||||
|
|
|
@ -79,9 +79,8 @@ namespace inst::ui {
|
||||||
}
|
}
|
||||||
if ((Down & KEY_A) || (Up & KEY_TOUCH)) {
|
if ((Down & KEY_A) || (Up & KEY_TOUCH)) {
|
||||||
nspInstPage::selectNsp(this->menu->GetSelectedIndex());
|
nspInstPage::selectNsp(this->menu->GetSelectedIndex());
|
||||||
if (this->menu->GetItems().size() == 1) {
|
if (this->menu->GetItems().size() == 1 && nspInstPage::selectedNsps.size() == 1) {
|
||||||
nspInstPage::startInstall();
|
nspInstPage::startInstall();
|
||||||
nspInstPage::selectNsp(this->menu->GetSelectedIndex());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((Down & KEY_Y)) {
|
if ((Down & KEY_Y)) {
|
||||||
|
|
Loading…
Reference in a new issue