From d4fc229a77583964ba60ca661cafb718563ca4dd Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 27 Oct 2026 09:41:51 -0700 Subject: [PATCH] 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. --- komorebi-recorder/src/viewer/inspector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-recorder/src/viewer/inspector.rs b/komorebi-recorder/src/viewer/inspector.rs index 9943f03e..4dfe8a42 100644 --- a/komorebi-recorder/src/viewer/inspector.rs +++ b/komorebi-recorder/src/viewer/inspector.rs @@ -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 {