From 5b92f8c1594bafe4c386b7fcd0819487ee6ddcc5 Mon Sep 17 00:00:00 2001 From: Illia Vysochyn Date: Thu, 15 Feb 2024 12:06:15 +0100 Subject: [PATCH] [#54504] src: gui_node.cpp: Perform first render before timer Signed-off-by: Illia Vysochyn --- src/gui_node.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui_node.cpp b/src/gui_node.cpp index 906484e..0cf9131 100644 --- a/src/gui_node.cpp +++ b/src/gui_node.cpp @@ -56,6 +56,11 @@ bool GuiNode::prepare(const std::string &application_name, bool maximize_window) bool status = gui_engine->init(maximize_window); if (status) { + if (!this->render()) + { + RCLCPP_FATAL(get_logger(), "Failed to render"); + return false; + } timer = this->create_wall_timer( std::chrono::milliseconds(10), [this]() -> void