Skip to content

Commit 177b89c

Browse files
committed
make start positions per-device
1 parent 77c8748 commit 177b89c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Framework/Core/include/Framework/DeviceControl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ struct DeviceControl {
5252
int logStreams = 0;
5353
/// An incremental number to identify the device state
5454
int requestedState = 0;
55+
/// The first slot in the records buffer to display in GUI
56+
int firstSlot = 0;
5557
};
5658

5759
} // namespace o2::framework

Framework/GUISupport/src/FrameworkGUIDevicesGraph.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,9 @@ void showTopologyNodeGraph(WorkspaceGUIState& state,
725725
}();
726726
if (records > 0) {
727727
ImGui::PushItemWidth(140);
728-
ImGui::SliderInt("##window", &v, 0, records - gui::WND, "start: %d", ImGuiSliderFlags_AlwaysClamp);
728+
ImGui::SliderInt("##window", &controls[node->ID].firstSlot, 0, records - gui::WND, "start: %d", ImGuiSliderFlags_AlwaysClamp);
729729
}
730-
gui::displayDataRelayer(metricsInfos[node->ID], infos[node->ID], specs[node->ID], allStates[node->ID], ImVec2(140., 90.), v);
730+
gui::displayDataRelayer(metricsInfos[node->ID], infos[node->ID], specs[node->ID], allStates[node->ID], ImVec2(140., 90.), controls[node->ID].firstSlot);
731731
ImGui::EndGroup();
732732

733733
// Save the size of what we have emitted and whether any of the widgets are being used

0 commit comments

Comments
 (0)