mirror of
https://github.com/yoboujon/ftxui_template.git
synced 2025-06-08 04:50:49 +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)
|
||||
{
|
||||
UserInterface &ui = UserInterface::GetInstance();
|
||||
|
||||
if (payload.type == EventType::STOP)
|
||||
handler.stop();
|
||||
else if (payload.type == EventType::SWITCH_SCREEN)
|
||||
|
@ -29,7 +27,6 @@ int main(int argc, char **argv)
|
|||
{
|
||||
// Event/Screen
|
||||
EventHandler handler;
|
||||
UserInterface &ui = UserInterface::GetInstance();
|
||||
|
||||
// Page declaration
|
||||
Page1 page1(handler);
|
||||
|
|
Loading…
Add table
Reference in a new issue