2025-02-14 09:48 AM
Hi, I have a situation where the startup screen is chosen based on a the value of a variable. Is there any way to programmatically add a if else for the startup screen?
2025-02-14 10:04 AM - edited 2025-02-14 10:10 AM
Hi @Priyank
To this file
\gui\include\gui\common\FrontendHeap.hpp
add this function
virtual void gotoStartScreen ( FrontendApplication & app ) override final
{
/*
switch ( GetStartupScreen () )
{
case 1:
app.gotoScreen1 ();
break;
case 2:
default:
app.gotoScreen2 ();
break;
};
*/
// call here startup screen
app.gotoYourScreen ();
}