()
| 2563 | } |
| 2564 | |
| 2565 | function promptForBundleID() { |
| 2566 | if (!selectedSimulator) { |
| 2567 | return; |
| 2568 | } |
| 2569 | const nextValue = window.prompt( |
| 2570 | `Launch bundle on ${selectedSimulator.name}`, |
| 2571 | bundleIDValueRef.current, |
| 2572 | ); |
| 2573 | if (nextValue == null) { |
| 2574 | return; |
| 2575 | } |
| 2576 | const trimmed = nextValue.trim(); |
| 2577 | if (!trimmed) { |
| 2578 | return; |
| 2579 | } |
| 2580 | bundleIDValueRef.current = trimmed; |
| 2581 | writePersistedUiState((current) => ({ |
| 2582 | ...current, |
| 2583 | bundleIDValue: trimmed, |
| 2584 | })); |
| 2585 | setMenuOpen(false); |
| 2586 | void runAction(() => |
| 2587 | launchSimulatorBundle(selectedSimulator.udid, { bundleId: trimmed }), |
| 2588 | ); |
| 2589 | } |
| 2590 | |
| 2591 | function sendHardwareButtonEvent( |
| 2592 | button: string, |
nothing calls this directly
no test coverage detected