This commit is contained in:
CommanderRedYT
2022-01-18 20:22:12 +01:00
parent eb8cacec5a
commit a66d48de7d

View File

@ -6,6 +6,7 @@
#include <icons/back.h> #include <icons/back.h>
// local includes // local includes
#include "displays/bobbypopupdisplay.h"
#include "displays/menus/settingsmenu.h" #include "displays/menus/settingsmenu.h"
#include "bobbycheckbox.h" #include "bobbycheckbox.h"
#include "newsettings.h" #include "newsettings.h"
@ -36,6 +37,18 @@ public:
private: private:
ConfigWrapper<bool> &m_config; ConfigWrapper<bool> &m_config;
}; };
// TODO: Replace SwitchScreenAction / switchScreen with this action. Needs: BobbyPopupDisplayWithCustomExitAction => pass SwitchScreenAction<SettingsMenu> into it
class ExitFeatureFlagsMenuAction : public virtual ActionInterface {
public:
void triggered() override {
auto newDisplay = std::make_unique<BobbyPopupDisplay>(std::move("Please reboot if you have changed something"), std::move(espgui::currentDisplay));
newDisplay->initOverlay();
espgui::currentDisplay = std::move(newDisplay);
}
};
} // namespace } // namespace
FeatureFlagsMenu::FeatureFlagsMenu() FeatureFlagsMenu::FeatureFlagsMenu()