diff options
| author | Avi Levkovich <avi@twine-s.com> | 2020-08-05 13:39:17 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2020-08-05 13:39:17 +0300 |
| commit | 649f1c03e08072bfe1c73adfbf377bcad58b4ec0 (patch) | |
| tree | e04d3d6db342e2499e7eaf2f10a2baea3c671f67 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels | |
| parent | a28eb2177c88edaa5097748de4dbd6f0133a0e7a (diff) | |
| parent | 592cf6ec8f64037215a8cdf50f41437698a13e81 (diff) | |
| download | Tango-649f1c03e08072bfe1c73adfbf377bcad58b4ec0.tar.gz Tango-649f1c03e08072bfe1c73adfbf377bcad58b4ec0.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs index 665847081..80fd4b0fd 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs @@ -546,6 +546,7 @@ namespace Tango.PPC.Jobs.ViewModels } catch (Exception ex) { + IsFree = true; LogManager.Log(ex, $"Error loading job '{(_job_to_load != null ? _job_to_load.Name : "null")}'"); await NotificationProvider.ShowError("An error occurred while trying to load the selected job."); _can_navigate_back = true; @@ -553,11 +554,7 @@ namespace Tango.PPC.Jobs.ViewModels } finally { - InvokeUI(() => - { - IsFree = true; - //NotificationProvider.ReleaseGlobalBusyMessage(); - }); + IsFree = true; } } @@ -1427,6 +1424,8 @@ namespace Tango.PPC.Jobs.ViewModels { bool result = true; + if (!IsFree) return false; + if (!_can_navigate_back) { bool jobChainged = false; |
