mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
26 lines
801 B
C++
26 lines
801 B
C++
#include "pop_up_controller.h"
|
|
#include "../apps_container.h"
|
|
|
|
namespace HardwareTest {
|
|
|
|
PopUpController::PopUpController() :
|
|
::PopUpController(
|
|
4,
|
|
Invocation(
|
|
[](void * context, void * sender) {
|
|
AppsContainer * appsContainer = AppsContainer::sharedAppsContainer();
|
|
bool switched = appsContainer->switchTo(appsContainer->hardwareTestAppSnapshot());
|
|
assert(switched);
|
|
(void) switched; // Silence compilation warning about unused variable.
|
|
return true;
|
|
}, this)
|
|
)
|
|
{
|
|
m_contentView.setMessage(0, I18n::Message::HardwareTestLaunch1);
|
|
m_contentView.setMessage(1, I18n::Message::HardwareTestLaunch2);
|
|
m_contentView.setMessage(2, I18n::Message::HardwareTestLaunch3);
|
|
m_contentView.setMessage(3, I18n::Message::HardwareTestLaunch4);
|
|
}
|
|
|
|
}
|