╭ changed ───────────╮ │src/ui/Repo/Undo.zig│ ╰────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │390 const button = &details.children.values()[0].widget.text_box; │ │391 const description = &details.children.values()[2].widget.text_box; │ │392 try button.setContent(allocator, if (item.index == 0) "initial state cannot be undone" else if (item.index == self.data.count - 1) "undo this" else "undo this and all above it");│ │362 - // a transaction that wrote events links to them instead of describing itself │ │363 - if (item.events) |events| { │ │364 - try description.setContent(allocator, events.label); │ │365 - description.options.label = " events "; │ │366 - description.getFocus().kind = .{ .custom = events.link }; │ │393 + // some actions put a button where the description would go │ │394 + if (item.button) |detail_button| { │ │395 + try description.setContent(allocator, detail_button.text); │ │396 + description.options.label = detail_button.label; │ │397 + description.getFocus().kind = if (detail_button.link) |link| .{ .custom = link } else .text_box; │ │398 } else { │ │399 try description.setContent(allocator, item.description); │ │400 description.options.label = " description "; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯