There was an error while loading. Please reload this page.
1 parent 1b17225 commit 88aa368Copy full SHA for 88aa368
1 file changed
Trimble.Modus.Components/Controls/Toast/TMToastContents.xaml.cs
@@ -155,19 +155,18 @@ private void SetTheme(String toastTheme)
155
UpdateIconColor();
156
157
}
158
-
159
- bool isPopupClosed = false;
+
160
private void CloseButtonClicked(object sender, EventArgs e)
161
- {
162
- PopupService.Instance.RemovePageAsync(this, true);
163
- isPopupClosed = true;
+ {
+ if (PopupService.Instance.PopupStack.Contains(this))
+ PopupService.Instance.RemovePageAsync(this, true);
164
165
public void CloseAfterDelay()
166
{
167
Task.Run(async () =>
168
169
await Task.Delay(DELAYTIME);
170
- if (!isPopupClosed)
171
await PopupService.Instance.RemovePageAsync(this, true);
172
});
173
0 commit comments