Skip to content

Commit

Permalink
Fixed bug where FlushConfigCache() did not also trigger a re-render, …
Browse files Browse the repository at this point in the history
…leading to waveforms being displayed at incorrect scale/offset until a redraw was triggered for some other reason
  • Loading branch information
azonenberg committed Nov 25, 2023
1 parent bdd8fd4 commit fb470dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ngscopeclient/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ void MainWindow::ToolbarButtons()
//Refresh scope settings
ImGui::SameLine();
if(ImGui::ImageButton("refresh-settings", GetTexture("refresh-settings"), buttonsize))
{
m_session.FlushConfigCache();
ClearPersistence();
}
Dialog::Tooltip(
"Flush PC-side cached instrument state and reload configuration from the instrument.\n\n"
"This will cause a brief slowdown of the application, but can be used to re-sync when\n"
Expand Down

0 comments on commit fb470dc

Please sign in to comment.