From 357d86202db77f6860b8f514e910b967ce4c3034 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 28 Apr 2022 02:30:11 +0300 Subject: Spool Type Firmware Notifications. --- .../PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs | 6 ++++++ 1 file changed, 6 insertions(+) (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 c5e4d46e7..59005509e 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 @@ -311,6 +311,7 @@ namespace Tango.PPC.MachineSettings.ViewModels Settings.LockScreenTimeout = TimeSpan.FromMinutes(LockScreenTimeoutMinutes); Settings.LockScreenPassword = LockScreenPassword; Settings.DefaultRmlGuid = DefaultRML?.Guid; + String previousSpoolType = Settings.SpoolTypeGuid; Settings.SpoolTypeGuid = SelectedSpoolType?.Guid; Settings.SynchronizeJobs = SynchronizeJobs; Settings.SynchronizeDiagnostics = SynchronizeDiagnostics; @@ -328,6 +329,11 @@ namespace Tango.PPC.MachineSettings.ViewModels bool isRestarting = false; + if (SelectedSpoolType != null && previousSpoolType != Settings.SpoolTypeGuid) + { + await MachineProvider.MachineOperator.SetSpoolType((PMR.Printing.JobSpoolType)SelectedSpoolType.Code); + } + if (_previousTimeZone.ToStringSafe() != SelectedTimeZone.ToStringSafe()) { if (await NotificationProvider.ShowQuestion("Changing the time zone requires the application to restart. Do you wish to restart the application?")) -- cgit v1.3.1