From 1b6dd5bd3f75ed666d88d2145395d38c4fa9981f Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:29:09 -0500 Subject: [PATCH] chore: don't show practice tooltip if mode is complete (#5108) --- .../layout/message_selection_positioner.dart | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/pangea/toolbar/layout/message_selection_positioner.dart b/lib/pangea/toolbar/layout/message_selection_positioner.dart index 3d164f77c..469176cef 100644 --- a/lib/pangea/toolbar/layout/message_selection_positioner.dart +++ b/lib/pangea/toolbar/layout/message_selection_positioner.dart @@ -454,9 +454,18 @@ class MessageSelectionPositionerState extends State 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