Skip to content

Commit 06e1672

Browse files
authored
Merge pull request #1841 from AllenInstitute/bugfix/1841-fix_showtraceinfotags
2 parents 0e8b59c + eceba1d commit 06e1672

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Packages/MIES/MIES_GuiUtilities.ipf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,14 +2133,15 @@ End
21332133
/// @brief Enable show trace info tags globally
21342134
Function ShowTraceInfoTags()
21352135

2136-
DoIgorMenu/C "Graph", "Show Trace Info Tags"
2137-
2138-
if(cmpStr(S_value,"Hide Trace Info Tags"))
2139-
// add graph so that the menu item is available
2140-
Display
2136+
Display
2137+
// Window must not be hidden
2138+
// Returns in S_value the state before toggling
2139+
DoIgorMenu/OVRD "Graph", "Show Trace Info Tags"
2140+
if(CmpStr(S_value,"Show Trace Info Tags"))
2141+
// toggled to "Show Trace Info Tags", need to toggle back
21412142
DoIgorMenu/OVRD "Graph", "Show Trace Info Tags"
2142-
KillWindow/Z $S_name
21432143
endif
2144+
KillWindow/Z $S_name
21442145
End
21452146

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

0 commit comments

Comments
 (0)