1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-28 12:22:02 +00:00

Added version check before displaying upp update ListItem

This commit is contained in:
flb 2020-09-28 20:50:21 +02:00
parent 42ac9217cf
commit 244fd1c8c4
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ DATA := data
INCLUDES := include lib/zipper/include
APP_TITLE := All-in-One Switch Updater
APP_AUTHOR := HamletDuFromage
APP_VERSION := 1.1.2
APP_VERSION := 1.1.3
#ROMFS := $(BUILD)/romfs
BOREALIS_PATH := lib/borealis

View file

@ -27,7 +27,7 @@ ToolsTab::ToolsTab() : brls::List()
this->addView(rebootPayload);
std::string tag = getLatestTag(TAGS_INFO);
if(!tag.empty()){
if(!tag.empty() && tag != APP_VERSION){
updateApp = new brls::ListItem("Update the app (v" + tag +")");
std::string text("Downloading:\nAIO-switch-updater\n\nFrom:\n" + std::string(APP_URL));
updateApp->getClickEvent()->subscribe([&, text](brls::View* view) {