Skip to content

TMToast - Getting exception when click close button #450 - #451

Merged
amosekr merged 2 commits into
developfrom
450-tmtoast---getting-exception-when-click-close-button
Oct 22, 2025
Merged

TMToast - Getting exception when click close button #450#451
amosekr merged 2 commits into
developfrom
450-tmtoast---getting-exception-when-click-close-button

Conversation

@amosekr

@amosekr amosekr commented Oct 21, 2025

Copy link
Copy Markdown
Collaborator

In the TMToast control, we encountered an exception because the popup was being removed twice. Initially, the popup was removed when the close button was clicked, and then it was removed again after the delay time expired. This was the cause of the issue. It has now been fixed as part of ticket #450.

@amosekr
amosekr requested a review from rthanga1 October 21, 2025 11:00
@amosekr amosekr linked an issue Oct 21, 2025 that may be closed by this pull request
Comment thread Trimble.Modus.Components/Controls/Toast/TMToastContents.xaml.cs Outdated
@rthanga1
rthanga1 requested a review from Copilot October 22, 2025 04:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a double-removal exception in the TMToast control where clicking the close button would remove the popup, and then the auto-dismiss timer would attempt to remove it again after the delay expired.

Key Changes:

  • Added a boolean flag to track popup closure state
  • Conditional check prevents duplicate removal attempts

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Trimble.Modus.Components.csproj Version bump to 1.3.0.3 for the bug fix release
TMToastContents.xaml.cs Added isPopupClosed flag and guard condition to prevent double-removal of popup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Trimble.Modus.Components/Controls/Toast/TMToastContents.xaml.cs Outdated
Comment thread Trimble.Modus.Components/Controls/Toast/TMToastContents.xaml.cs Outdated
@amosekr
amosekr merged commit 61b6804 into develop Oct 22, 2025
1 of 2 checks passed
@amosekr
amosekr deleted the 450-tmtoast---getting-exception-when-click-close-button branch October 22, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TMToast - Getting exception when click close button

4 participants