From 6874cc060f520e3c425955e2a5346bc544f0b5ad Mon Sep 17 00:00:00 2001 From: flb Date: Wed, 30 Mar 2022 22:25:05 +0200 Subject: [PATCH] small refactor --- source/list_download_tab.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/list_download_tab.cpp b/source/list_download_tab.cpp index 5400fee..fd6c293 100644 --- a/source/list_download_tab.cpp +++ b/source/list_download_tab.cpp @@ -178,7 +178,6 @@ void ListDownloadTab::createCheatSlipItem() cheatslipsItem->getClickEvent()->subscribe([](brls::View* view) { if (std::filesystem::exists(TOKEN_PATH)) { brls::Application::pushView(new AppPage_CheatSlips()); - return true; } else { std::string usr, pwd; @@ -197,13 +196,12 @@ void ListDownloadTab::createCheatSlipItem() tokenFile << token.dump(); tokenFile.close(); brls::Application::pushView(new AppPage_CheatSlips()); - return true; } else { util::showDialogBoxInfo("menus/cheats/cheatslips_wrong_id"_i18n + "\n" + "menus/cheats/kb_error"_i18n); - return true; } } + return true; }); this->addView(cheatslipsItem); }