Skip to content

Commit eceba1d

Browse files
committed
bugfix for showing the traceinfotags
Previously the traceinfotags were not reliably activated in the aftercompilehook. The new approach uses the result of the menu toggle operation DoIgorMenu/OVRD only to determine the actual state of the menu entry. As before a graph window must be open and visible such that the "Graph" menu is present. Since introduction in: 599e797 (Add ShowTraceInfoTags, 2021-07-05)
1 parent 44a1aa2 commit eceba1d

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)