Skip to content

Commit f726a6f

Browse files
committed
Only show thread id in tooltip for quenched debugger/evaluator
1 parent 22938c1 commit f726a6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Common/src/main/kotlin/gay/object/hexdebug/items/DebuggerItem.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ class DebuggerItem(
190190
tooltipComponents: MutableList<Component>,
191191
isAdvanced: TooltipFlag,
192192
) {
193-
tooltipComponents.add(displayThread(null, getThreadId(stack)))
193+
if (isQuenched) {
194+
tooltipComponents.add(displayThread(null, getThreadId(stack)))
195+
}
194196
super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
195197
}
196198

Common/src/main/kotlin/gay/object/hexdebug/items/EvaluatorItem.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ class EvaluatorItem(
9191
tooltipComponents: MutableList<Component>,
9292
isAdvanced: TooltipFlag,
9393
) {
94-
tooltipComponents.add(displayThread(null, getThreadId(stack)))
94+
if (isQuenched) {
95+
tooltipComponents.add(displayThread(null, getThreadId(stack)))
96+
}
9597
super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
9698
}
9799

0 commit comments

Comments
 (0)