From 1746d2c7f601f44c23399aa6d19661fb7ff937ec Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 4 Mar 2019 15:49:59 +0200 Subject: Fixed several issues with PPC. --- .../PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs index 7896367ec..246b86469 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs @@ -119,7 +119,7 @@ namespace Tango.PPC.MachineSettings.ViewModels { Machine.SupportedJobTypes = SelectedJobTypes.SynchedSource.ToList(); Machine.SupportedColorSpaces = SelectedColorSpaces.SynchedSource.ToList(); - Machine.ShallowCopyTo(MachineProvider.Machine); + Machine.MapPrimitivesWithStringsNoNullsTo(MachineProvider.Machine); Settings.EnableHotSpot = EnableHotSpot; Settings.HotSpotPassword = HotSpotPassword; @@ -149,8 +149,8 @@ namespace Tango.PPC.MachineSettings.ViewModels { base.OnNavigatedTo(); - Machine = new Machine(); - MachineProvider.Machine.ShallowCopyTo(Machine); + Machine = MachineProvider.Machine.ShallowClone(); + RaisePropertyChanged(nameof(Machine)); _enableHotSpot = HotSpotProvider.IsEnabled; -- cgit v1.3.1