Skip to content

Commit

Permalink
Merge pull request #1841 from AllenInstitute/bugfix/1841-fix_showtrac…
Browse files Browse the repository at this point in the history
…einfotags
  • Loading branch information
t-b authored Aug 8, 2023
2 parents 0e8b59c + eceba1d commit 06e1672
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Packages/MIES/MIES_GuiUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -2133,14 +2133,15 @@ End
/// @brief Enable show trace info tags globally
Function ShowTraceInfoTags()

DoIgorMenu/C "Graph", "Show Trace Info Tags"

if(cmpStr(S_value,"Hide Trace Info Tags"))
// add graph so that the menu item is available
Display
Display
// Window must not be hidden
// Returns in S_value the state before toggling
DoIgorMenu/OVRD "Graph", "Show Trace Info Tags"
if(CmpStr(S_value,"Show Trace Info Tags"))
// toggled to "Show Trace Info Tags", need to toggle back
DoIgorMenu/OVRD "Graph", "Show Trace Info Tags"
KillWindow/Z $S_name
endif
KillWindow/Z $S_name
End

/// @brief Return the recreation macro and the type of the given control
Expand Down

0 comments on commit 06e1672

Please sign in to comment.