Skip to content

Commit

Permalink
Merge "ui: allow pinning tracks with children if they are not summari…
Browse files Browse the repository at this point in the history
…es" into main
  • Loading branch information
LalitMaganti authored and Gerrit Code Review committed Dec 9, 2024
2 parents 1e18c8d + 9d63f91 commit 8301ce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/frontend/track_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ export class TrackPanel implements Panel {
renderTrackDetailsButton(node, trackRenderer?.desc),
trackRenderer?.track.getTrackShellButtons?.(),
node.removable && renderCloseButton(node),
// Can't pin groups.. yet!
!node.hasChildren && renderPinButton(node),
// We don't want summary tracks to be pinned as they rarely have
// useful information.
!node.isSummary && renderPinButton(node),
this.renderAreaSelectionCheckbox(node),
error && renderCrashButton(error, trackRenderer?.desc.pluginId),
];
Expand Down

0 comments on commit 8301ce9

Please sign in to comment.