mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/GP-1-dragonmacher-component-provider-frustration-fix'
This commit is contained in:
commit
5353c46d7a
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,7 @@ import java.util.*;
|
|||
import javax.swing.*;
|
||||
|
||||
import docking.action.*;
|
||||
import docking.util.AnimationUtils;
|
||||
import generic.theme.*;
|
||||
import ghidra.util.*;
|
||||
import ghidra.util.exception.AssertException;
|
||||
|
@ -1123,6 +1124,14 @@ public abstract class ComponentProvider implements HelpDescriptor, ActionContext
|
|||
}
|
||||
|
||||
private boolean isFrustrated() {
|
||||
|
||||
if (!AnimationUtils.isAnimationEnabled()) {
|
||||
// The use of being frustrated is to emphasize (animate) the window for the user in
|
||||
// order to draw attention to the window. If animation is off, then no need to
|
||||
// check for frustration.
|
||||
return false;
|
||||
}
|
||||
|
||||
long time = System.currentTimeMillis();
|
||||
clickTimes.add(time);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue