libui: Properly request redraws from the server

Before this, the call to update() was always skipped.
This commit is contained in:
apio 2023-09-16 13:12:26 +02:00
parent a202ef1f34
commit 0f926d5094
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -75,7 +75,7 @@ namespace ui
Result<void> Window::draw() Result<void> Window::draw()
{ {
m_canvas.fill(m_background); 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(); update();
return {}; return {};
} }