diff options
| author | Avi Levkovich <avi@twine-s.com> | 2021-01-05 12:56:17 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2021-01-05 12:56:17 +0200 |
| commit | 13f07d2e0c0543a76f44fbaa4b4016f267a72808 (patch) | |
| tree | 756a85cbb52ab5e1b610ce86e33e461ef9942301 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs | |
| parent | 1cdf74039fbcef8ab34fe73da09d2ded4762e756 (diff) | |
| parent | b38c7c3f9432cb2836b6c93c6613686ef0bc002a (diff) | |
| download | Tango-13f07d2e0c0543a76f44fbaa4b4016f267a72808.tar.gz Tango-13f07d2e0c0543a76f44fbaa4b4016f267a72808.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs')
| -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..."); |
