hotfix(ai-scribe): Fix text selection handler correctly gated by AI Scribe availability.

This commit is contained in:
dab246
2025-12-23 17:37:32 +07:00
committed by Dat H. Pham
parent f45f55751f
commit 20b93cd8db
3 changed files with 9 additions and 15 deletions
@@ -147,4 +147,8 @@ extension HandleAiScribeInComposerExtension on ComposerController {
editorTextSelection.value = null;
}
}
void Function(TextSelectionData? textSelectionData)?
get textSelectionHandler =>
isAIScribeAvailable ? handleTextSelection : null;
}