(boolean visible)
| 4539 | } |
| 4540 | |
| 4541 | private void setVisible(boolean visible) { |
| 4542 | if (!visible) { |
| 4543 | if (!isPreviewMode.get()) { |
| 4544 | searchBar.setVisible(false); |
| 4545 | EventManagement eventManagement = EventManagement.getInstance(); |
| 4546 | eventManagement.putEvent(new SearchBarCloseEvent()); |
| 4547 | } |
| 4548 | } else { |
| 4549 | searchBar.setVisible(true); |
| 4550 | } |
| 4551 | } |
| 4552 | |
| 4553 | /** |
| 4554 | * 重置所有状态并关闭窗口 |
no test coverage detected