19e5eb84fda6b765410726d439ab366dce141e94 chmalee Wed Oct 29 16:07:50 2025 -0700 For the ddg2p cart rewrite, only turn on the new g2p container super track is the decipher supertrack was on previously diff --git src/hg/cgilib/cartEdit9.c src/hg/cgilib/cartEdit9.c index cb4dbe2d6a2..e5cf6160bb8 100644 --- src/hg/cgilib/cartEdit9.c +++ src/hg/cgilib/cartEdit9.c @@ -11,18 +11,21 @@ }; static char *edit9TracksG2p[] = { "ddg2p", }; void cartEdit9(struct cart *cart) { int length = 0; // turn the encodeCcreCombined track into a child of the new ccres supertrack length = ArraySize(edit9TracksCcre); cartTurnOnSuper(cart, edit9TracksCcre, length, "cCREs"); // Move the ddg2p track from the decipher container to it's own supertrack +// but only if the decipherContainer was on previously and ddg2p was also on length = ArraySize(edit9TracksG2p); +char *oldContainerVis = cartOptionalString(cart, "decipherContainer"); +if (oldContainerVis && sameString(oldContainerVis, "show")) cartTurnOnSuper(cart, edit9TracksG2p, length, "g2pContainer"); }