diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-01-04 18:14:27 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-01-04 18:14:27 +0200 |
| commit | 2540681520f748e160f4e0c8a8105d495b34a1f3 (patch) | |
| tree | 9b713f087dcb2fde999a3d7e4e3eec8c789808dc /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels | |
| parent | 6b5f625fae0bc6c69bfd626c967367efbea19d6e (diff) | |
| download | Tango-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.cs | 4 |
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..."); |
