mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-28 20:32:06 +00:00
small refactor
This commit is contained in:
parent
e056903326
commit
6874cc060f
1 changed files with 1 additions and 3 deletions
|
@ -178,7 +178,6 @@ void ListDownloadTab::createCheatSlipItem()
|
||||||
cheatslipsItem->getClickEvent()->subscribe([](brls::View* view) {
|
cheatslipsItem->getClickEvent()->subscribe([](brls::View* view) {
|
||||||
if (std::filesystem::exists(TOKEN_PATH)) {
|
if (std::filesystem::exists(TOKEN_PATH)) {
|
||||||
brls::Application::pushView(new AppPage_CheatSlips());
|
brls::Application::pushView(new AppPage_CheatSlips());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::string usr, pwd;
|
std::string usr, pwd;
|
||||||
|
@ -197,13 +196,12 @@ void ListDownloadTab::createCheatSlipItem()
|
||||||
tokenFile << token.dump();
|
tokenFile << token.dump();
|
||||||
tokenFile.close();
|
tokenFile.close();
|
||||||
brls::Application::pushView(new AppPage_CheatSlips());
|
brls::Application::pushView(new AppPage_CheatSlips());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
util::showDialogBoxInfo("menus/cheats/cheatslips_wrong_id"_i18n + "\n" + "menus/cheats/kb_error"_i18n);
|
util::showDialogBoxInfo("menus/cheats/cheatslips_wrong_id"_i18n + "\n" + "menus/cheats/kb_error"_i18n);
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this->addView(cheatslipsItem);
|
this->addView(cheatslipsItem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue