Use cockpit readiness for voice entry on either globe

This commit is contained in:
German Khokhlov committed 2026-11-03 02:39:27 +04:00
1 parent d7ab85f5c4
commit b7431d7823
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -1076,7 +1076,9 @@ export function createGevActionRunner({
contextState?.mode === 'flights' &&
contextState?.active !== false &&
contextState?.changing !== true;
if (!contactsReady && engine?.kind !== 'navara') {
const directEntry = !targetLayer && !aircraftClass &&
styleManager.getCockpitState?.()?.entryAllowed === true;
if (!contactsReady && !directEntry) {
const contextResult = await styleManager.setContextMode('flights', {
signal: runOptions.signal,
isCurrent: runOptions.isCurrent,