| | |
| | | return; |
| | | } |
| | | if (userTriggered && "handheld".equalsIgnoreCase(type) && !hasConfiguredHandheldMarker()) { |
| | | JOptionPane.showMessageDialog(this, "请先添加便携打点器编号", "提示", JOptionPane.WARNING_MESSAGE); |
| | | JOptionPane.showMessageDialog(this, "请先去系统设置添加便携打点器编号", "提示", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | | } |
| | | if (selectedMethodPanel != null && selectedMethodPanel != option) { |
| | |
| | | } |
| | | if (!configMap.isEmpty()) { |
| | | List<ExistingObstacle> remaining = new ArrayList<>(configMap.values()); |
| | | remaining.sort(Comparator.comparing(ExistingObstacle::getName, String.CASE_INSENSITIVE_ORDER)); |
| | | remaining.sort((a, b) -> String.CASE_INSENSITIVE_ORDER.compare(a.getName(), b.getName())); |
| | | result.addAll(remaining); |
| | | } |
| | | if (result.isEmpty()) { |