Fire ActiveProfileModifed on Save if printer is open, pass Settings
This commit is contained in:
parent
d0e0eae3a1
commit
c30eb13688
1 changed files with 2 additions and 2 deletions
|
|
@ -433,9 +433,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
File.WriteAllText(filePath, json);
|
||||
}
|
||||
|
||||
if (ApplicationController.Instance.ActivePrinter.Settings.ID == this.ID)
|
||||
if (ApplicationController.Instance.ActivePrinters.FirstOrDefault(p => p.Settings.ID == this.ID) is PrinterConfig printer)
|
||||
{
|
||||
ApplicationController.Instance.ActiveProfileModified.CallEvents(null, null);
|
||||
ApplicationController.Instance.ActiveProfileModified.CallEvents(printer.Settings, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue