diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-12-08 15:28:31 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-12-08 15:28:31 +0200 |
| commit | d1859415972bb991cba6639482c1cd2a9e19e8d8 (patch) | |
| tree | 93f688cdcf876c23072cf3de016c3811982fbd7e /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner | |
| parent | 3cd59dd3b04168ad91cb1fe51231e9b3ddd74705 (diff) | |
| download | Tango-d1859415972bb991cba6639482c1cd2a9e19e8d8.tar.gz Tango-d1859415972bb991cba6639482c1cd2a9e19e8d8.zip | |
Implemented possible improvement for WebClient download speed.
Implemented PPC notifications priority.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineUpdatesViewVM.cs | 11 |
1 files changed, 5 insertions, 6 deletions
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<MachineUpdateDetailsDialogVM, MachineUpdateDetailsDialog>(new MachineUpdateDetailsDialogVM() { Update = selectedUpdate }, (vm) => { }, () => { }); + if (SelectedUpdate != null && SelectedUpdate.ApplicationVersion != "Fake") + { + _notification.ShowModalDialog<MachineUpdateDetailsDialogVM, MachineUpdateDetailsDialog>(new MachineUpdateDetailsDialogVM() { Update = SelectedUpdate }, (vm) => { }, () => { }); + SelectedUpdate = new TangoUpdate() { ApplicationVersion = "Fake"}; + } } #endregion |
