mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-09 20:11:48 +00:00
Added version check before displaying upp update ListItem
This commit is contained in:
parent
42ac9217cf
commit
244fd1c8c4
2 changed files with 2 additions and 2 deletions
2
Makefile
2
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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue