mirror of
https://github.com/yoboujon/ftxui_template.git
synced 2025-06-08 13:00:50 +02:00
Redundant ui calls.
This commit is contained in:
parent
5aed3b80e9
commit
a0401429b6
1 changed files with 0 additions and 3 deletions
|
@ -16,8 +16,6 @@ Logger& logger = Logger::GetInstance();
|
||||||
|
|
||||||
static inline void loop_event(EventHandler &handler, const EventPayload &payload)
|
static inline void loop_event(EventHandler &handler, const EventPayload &payload)
|
||||||
{
|
{
|
||||||
UserInterface &ui = UserInterface::GetInstance();
|
|
||||||
|
|
||||||
if (payload.type == EventType::STOP)
|
if (payload.type == EventType::STOP)
|
||||||
handler.stop();
|
handler.stop();
|
||||||
else if (payload.type == EventType::SWITCH_SCREEN)
|
else if (payload.type == EventType::SWITCH_SCREEN)
|
||||||
|
@ -29,7 +27,6 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
// Event/Screen
|
// Event/Screen
|
||||||
EventHandler handler;
|
EventHandler handler;
|
||||||
UserInterface &ui = UserInterface::GetInstance();
|
|
||||||
|
|
||||||
// Page declaration
|
// Page declaration
|
||||||
Page1 page1(handler);
|
Page1 page1(handler);
|
||||||
|
|
Loading…
Add table
Reference in a new issue