From d1859415972bb991cba6639482c1cd2a9e19e8d8 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 8 Dec 2019 15:28:31 +0200 Subject: Implemented possible improvement for WebClient download speed. Implemented PPC notifications priority. --- .../ViewModels/MachineUpdatesViewVM.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs index 7ff64c505..c3c3baa70 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs @@ -129,12 +129,11 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels private void OnSelectedUpdateChanged() { - if (SelectedUpdate == null) return; - - var selectedUpdate = SelectedUpdate; - SelectedUpdate = null; - - _notification.ShowModalDialog(new MachineUpdateDetailsDialogVM() { Update = selectedUpdate }, (vm) => { }, () => { }); + if (SelectedUpdate != null && SelectedUpdate.ApplicationVersion != "Fake") + { + _notification.ShowModalDialog(new MachineUpdateDetailsDialogVM() { Update = SelectedUpdate }, (vm) => { }, () => { }); + SelectedUpdate = new TangoUpdate() { ApplicationVersion = "Fake"}; + } } #endregion -- cgit v1.3.1