Massive 12 hour rebase

This commit is contained in:
CommanderRedYT committed 2022-12-25 03:22:28 +01:00
1 parent 52b55b38cd
commit e4a482e202
311 files changed
+3113 -2823

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#include "bobbyerrorhandler.h"
// 3rdparty lib includes
#include <screenmanager.h>
#include <tftinterface.h>
// local includes
#include "guihelpers/bobbypopupdisplay.h"
namespace bobby {
void BobbyErrorHandler::errorOccurred(std::string &&error)
{
espgui::changeScreenCallback = [error_ = std::move(error)](espgui::TftInterface &tft){
auto newDisplay = std::make_unique<BobbyPopupDisplay>(std::string{error_}, std::move(espgui::currentDisplay));
newDisplay->initOverlay(tft);
espgui::currentDisplay = std::move(newDisplay);
};
}
} // namespace bobby