mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Fix dashboard title not showing
This commit is contained in:
parent
33682bd801
commit
67734521a9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user