@@ -181,14 +181,14 @@ void DrawTableGeneralTag(const size_t channel, SPU_CHANNELS_TAGS& tags) {
181
181
void DrawTableGeneralOn (const Chan::Data& data) {
182
182
ImGui::BeginDisabled ();
183
183
auto bit1 = data.get <Chan::On>().value ;
184
- ImGui::Checkbox (" " , &bit1);
184
+ ImGui::Checkbox (" ##On " , &bit1);
185
185
ImGui::EndDisabled ();
186
186
}
187
187
188
188
void DrawTableGeneralOff (const Chan::Data& data) {
189
189
auto bit2 = data.get <Chan::Stop>().value ;
190
190
ImGui::BeginDisabled ();
191
- ImGui::Checkbox (" " , &bit2);
191
+ ImGui::Checkbox (" ##Off " , &bit2);
192
192
ImGui::EndDisabled ();
193
193
}
194
194
@@ -237,7 +237,7 @@ void DrawTableGeneralFMod(const Chan::Data& data) { ImGui::Text("%i", data.get<C
237
237
238
238
void DrawTableGeneralPlot (SPU_CHANNELS_PLOT plot, size_t channel) {
239
239
constexpr auto plotSize = ImVec2 (Grid::WidthGeneralPlot - TablePadding, 0 );
240
- ImGui::PlotHistogram (" " , plot[channel], impl::DEBUG_SAMPLES, 0 , nullptr , 0 .0f , 1 .0f , plotSize);
240
+ ImGui::PlotHistogram (" ##Plot " , plot[channel], impl::DEBUG_SAMPLES, 0 , nullptr , 0 .0f , 1 .0f , plotSize);
241
241
}
242
242
243
243
void DrawTableGeneral (SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHANNELS_TAGS tags,
@@ -255,6 +255,7 @@ void DrawTableGeneral(SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHA
255
255
256
256
ImGui::TableHeadersRow ();
257
257
for (auto i = 0u ; i < SPU_CHANNELS_SIZE; ++i) {
258
+ ImGui::PushID (i);
258
259
const auto & data = channels[i].data ;
259
260
260
261
ImGui::TableNextRow (Grid::FlagsRow, rowHeight);
@@ -282,6 +283,7 @@ void DrawTableGeneral(SPU_CHANNELS_INFO channels, const float rowHeight, SPU_CHA
282
283
ImGui::TableNextColumn ();
283
284
DrawTableGeneralPlot (plot, i);
284
285
// @formatter:on
286
+ ImGui::PopID ();
285
287
}
286
288
ImGui::EndTable ();
287
289
}
0 commit comments