1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-08 19:41:49 +00:00
AIO-switch-updater/source/main_frame.cpp

24 lines
802 B
C++
Raw Normal View History

2020-09-20 01:21:28 +01:00
#include "main_frame.hpp"
#include "lang.hpp"
using namespace lang::literals;
2020-09-20 01:21:28 +01:00
MainFrame::MainFrame() : TabFrame()
{
std::string tag = getLatestTag(TAGS_INFO);
if(!tag.empty() && tag != APP_VERSION)
setTitle(std::string(APP_TITLE) + "main_app"_lang);
else
setTitle(std::string(APP_TITLE) + "main_v"_lang + std::string(APP_VERSION));
this->addTab("main_about"_lang, new AboutTab());
2020-09-20 01:21:28 +01:00
this->addSeparator();
this->addTab("main_update_cfw"_lang, new ListDownloadTab(cfw));
this->addTab("main_update_si"_lang, new ListDownloadTab(sigpatches));
this->addTab("main_firmwares"_lang, new ListDownloadTab(fw));
this->addTab("main_cheats"_lang, new ListDownloadTab(cheats));
2020-09-20 01:21:28 +01:00
this->addSeparator();
this->addTab("main_tools"_lang, new ToolsTab(tag));
2020-09-20 01:21:28 +01:00
}