fix(viewer): tell the system's groups apart in the events pane

On a Windows session several groups of the OS trace share the one source,
oslog:system (one per program), so the id of their collapsing headers,
built from the event and the source, was the same for all of them and egui
warned "First use of widget ID" under "the system around it". The
label is the program, and it tells them apart.

macOS gives every group a source of its own, which is why it never showed.
This commit is contained in:
LGUG2Z committed 2026-10-27 22:22:57 -07:00
1 parent fa631e7eea
commit d4fc229a77
1 file changed
+1 -1
+1 -1
View File
@@ -785,7 +785,7 @@ fn os_trace_ui(ui: &mut egui::Ui, dir: &std::path::Path, os: &OsTraceData, wants
group.label, group.during, group.after
);
egui::CollapsingHeader::new(RichText::new(title).color(colour))
.id_salt((os.seq, &group.source))
.id_salt((os.seq, &group.source, &group.label))
.default_open(group.kind == GroupKind::Komorebi && group.total() <= 12)
.show(ui, |ui| {
for record in &group.records {