|
|
@ -511,7 +511,8 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
private void startSearchTextFieldTimer() { |
|
|
|
private void startSearchTextFieldTimer() { |
|
|
|
Timer timer = new Timer(TIMER_DELAY, e -> { |
|
|
|
Timer timer = new Timer(TIMER_DELAY, e -> { |
|
|
|
if (StringUtils.isEmpty(searchTextField.getText())) { |
|
|
|
// 坑 isShowing返回false 即使textField有内容 getText返回的也是空
|
|
|
|
|
|
|
|
if (searchTextField.isShowing() && StringUtils.isEmpty(searchTextField.getText())) { |
|
|
|
SearchTooltipPopup.getInstance().hide(); |
|
|
|
SearchTooltipPopup.getInstance().hide(); |
|
|
|
switchType(selectedType); |
|
|
|
switchType(selectedType); |
|
|
|
} |
|
|
|
} |
|
|
|