aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-13 02:16:32 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-13 02:16:32 +0200
commit417462adb19c4489999087d8bb96e91ffeae3e65 (patch)
treeb21601f66046ea7b91f42228b320667c4538efa8 /Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs
parentcc2b95c9144d8a3486314766b645021a9a914d25 (diff)
downloadTango-417462adb19c4489999087d8bb96e91ffeae3e65.tar.gz
Tango-417462adb19c4489999087d8bb96e91ffeae3e65.zip
Quick fix.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerUpViewVM.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerUpViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerUpViewVM.cs
index 0215e2456..c0ef85bcc 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerUpViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerUpViewVM.cs
@@ -97,8 +97,6 @@ namespace Tango.PPC.UI.Dialogs
if (RemainingSeconds == 0)
{
- _timer.Stop();
-
InvokeUI(() =>
{
Accept();
@@ -108,9 +106,16 @@ namespace Tango.PPC.UI.Dialogs
protected override void Cancel()
{
+ _timer.Stop();
base.Cancel();
}
+ protected override void Accept()
+ {
+ _timer.Stop();
+ base.Accept();
+ }
+
public override void OnShow()
{
base.OnShow();