Fix dashboard title not showing

This commit is contained in:
Alex Spataru 2021-10-07 17:40:33 -05:00
parent 33682bd801
commit 67734521a9

View File

@ -630,11 +630,6 @@ void Dashboard::updateData()
if (m_jsonList.isEmpty())
return;
// Try to read latest frame for widget updating
auto lastJson = m_jsonList.last();
if (!m_latestFrame.read(lastJson.jsonDocument.object()))
return;
// Save widget count
int barC = barCount();
int fftC = fftCount();
@ -650,6 +645,11 @@ void Dashboard::updateData()
// Save previous title
auto pTitle = title();
// Try to read latest frame for widget updating
auto lastJson = m_jsonList.last();
if (!m_latestFrame.read(lastJson.jsonDocument.object()))
return;
// Clear widget data
m_barWidgets.clear();
m_fftWidgets.clear();