diff --git a/libui/src/Window.cpp b/libui/src/Window.cpp index 441e47db..fc12467d 100644 --- a/libui/src/Window.cpp +++ b/libui/src/Window.cpp @@ -75,7 +75,7 @@ namespace ui Result Window::draw() { m_canvas.fill(m_background); - if (m_main_widget) return m_main_widget->draw(m_canvas); + if (m_main_widget) TRY(m_main_widget->draw(m_canvas)); update(); return {}; }