2020-09-20 01:21:28 +01:00
|
|
|
#include "main_frame.hpp"
|
|
|
|
|
|
|
|
MainFrame::MainFrame() : TabFrame()
|
|
|
|
{
|
2020-09-29 15:41:43 +01:00
|
|
|
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));
|
2020-09-20 01:21:28 +01:00
|
|
|
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();
|
|
|
|
|
2020-09-29 15:41:43 +01:00
|
|
|
this->addTab("Tools", new ToolsTab(tag));
|
2020-09-20 01:21:28 +01:00
|
|
|
}
|