aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-04 18:14:27 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-04 18:14:27 +0200
commit2540681520f748e160f4e0c8a8105d495b34a1f3 (patch)
tree9b713f087dcb2fde999a3d7e4e3eec8c789808dc /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels
parent6b5f625fae0bc6c69bfd626c967367efbea19d6e (diff)
downloadTango-2540681520f748e160f4e0c8a8105d495b34a1f3.tar.gz
Tango-2540681520f748e160f4e0c8a8105d495b34a1f3.zip
Several bug fixes...
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
index 5fe153ee9..14b9b76e3 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
@@ -547,14 +547,14 @@ namespace Tango.PPC.UI.ViewModels
_updateNotificationItem.IsDatabaseUpdate = e.IsDatabaseUpdateAvailable && !e.IsUpdateAvailable;
_updateNotificationItem.Pressed += (_, __) =>
{
+ _updateNotificationItem = null;
+
if (MachineProvider.MachineOperator.IsPrinting)
{
NotificationProvider.ShowInfo("Cannot perform a machine update while the machine is dyeing.");
return;
}
- _updateNotificationItem = null;
-
if (!IsVisible)
{
LogManager.Log("Update available notification pressed. Navigating to update view...");