aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2021-01-13 13:44:21 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2021-01-13 13:44:21 +0200
commit626251b432517f9c1dd82997f061763e86bbe8df (patch)
treecc4b9776dccd505e2ae57c6a423c1c56fb047ded /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
parent38d2b46c7ca963a31ee43ae5bb1623dca2bc3e7c (diff)
parentcba294511ce2d7a3b2792632703b671e20263061 (diff)
downloadTango-626251b432517f9c1dd82997f061763e86bbe8df.tar.gz
Tango-626251b432517f9c1dd82997f061763e86bbe8df.zip
software merge.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
index 0f439c83d..e3547c568 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
@@ -623,13 +623,14 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
SelectedSite = Sites.SingleOrDefault(x => x.Guid == ActiveMachine.SiteGuid);
- ColorCalibrationViewVM = new ColorCalibrationViewVM(_notification, ActiveMachine, _activeMachineAdapter.Context)
+ ColorCalibrationViewVM = new ColorCalibrationViewVM(_notification, ActiveMachine, _activeMachineAdapter.Context, ActiveMachineAdapter.Rmls.FirstOrDefault())
{
Rmls = ActiveMachineAdapter.Rmls,
LiquidTypesRmls = ActiveMachineAdapter.Rmls.FirstOrDefault().LiquidTypesRmls,
- SelectedRML = ActiveMachineAdapter.Rmls.FirstOrDefault(),
};
+ await ColorCalibrationViewVM.Invalidate();
+
if (initHwConfig)
{
HardwareConfigurationViewVM = new HardwareConfigurationViewVM(_notification);
@@ -844,7 +845,7 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
await SelectedMachine.Reload(MachinesAdapter.Context);
}
- ColorCalibrationViewVM.Invalidate();
+ await ColorCalibrationViewVM.Invalidate();
}
}
catch (Exception ex)