chore: don't show practice tooltip if mode is complete (#5108)

This commit is contained in:
ggurdin 2026-01-07 11:29:09 -05:00 committed by GitHub
parent ea3c1d7a6a
commit 1b6dd5bd3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,9 +454,18 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
listenable:
widget.overlayController.practiceController,
builder: (context, _) {
final instruction = widget.overlayController
.practiceController.practiceMode.instruction;
if (instruction != null) {
final practice =
widget.overlayController.practiceController;
final instruction =
practice.practiceMode.instruction;
final type =
practice.practiceMode.associatedActivityType;
final complete = type != null &&
practice.isPracticeActivityDone(type);
if (instruction != null && !complete) {
return InstructionsInlineTooltip(
instructionsEnum: widget
.overlayController