mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-09-19 21:45:04 +01:00
24 lines
723 B
C++
24 lines
723 B
C++
#include "main_frame.hpp"
|
|
|
|
MainFrame::MainFrame() : TabFrame()
|
|
{
|
|
std::string tag = getLatestTag(TAGS_INFO);
|
|
if(!tag.empty() && tag != APP_VERSION)
|
|
setTitle(std::string(APP_TITLE) + " - New app update available");
|
|
else
|
|
setTitle(std::string(APP_TITLE) + " v" + std::string(APP_VERSION));
|
|
this->addTab("About", new AboutTab());
|
|
|
|
this->addSeparator();
|
|
|
|
this->addTab("Update CFW", new ListDownloadTab(cfw));
|
|
this->addTab("Update sigpatches", new ListDownloadTab(sigpatches));
|
|
this->addTab("Download firmwares", new ListDownloadTab(fw));
|
|
this->addTab("Download cheats", new ListDownloadTab(cheats));
|
|
|
|
|
|
this->addSeparator();
|
|
|
|
this->addTab("Tools", new ToolsTab(tag));
|
|
}
|