From 244fd1c8c4712e952ca550b351ec135e1e11c583 Mon Sep 17 00:00:00 2001 From: flb Date: Mon, 28 Sep 2020 20:50:21 +0200 Subject: [PATCH] Added version check before displaying upp update ListItem --- Makefile | 2 +- source/tools_tab.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7e7c258..a68d241 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/source/tools_tab.cpp b/source/tools_tab.cpp index 38ddb9a..b520abe 100644 --- a/source/tools_tab.cpp +++ b/source/tools_tab.cpp @@ -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) {