aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2022-04-28 02:30:11 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2022-04-28 02:30:11 +0300
commit357d86202db77f6860b8f514e910b967ce4c3034 (patch)
treeaccd34365d7450d82544ec2b287db87549355b1a /Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
parent59aa6065ebb3481e50c13ec6b4850448fe66186a (diff)
downloadTango-357d86202db77f6860b8f514e910b967ce4c3034.tar.gz
Tango-357d86202db77f6860b8f514e910b967ce4c3034.zip
Spool Type Firmware Notifications.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs6
1 files changed, 6 insertions, 0 deletions
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?"))