Private/ButtonClicks/Invoke-CancelReplotButtonClick.ps1
function Invoke-CancelReplotButtonClick{ [CmdletBinding()] param() try{ $DataHash.NewJobViewModel.NewChiaJob.InitialChiaParameters.ReplotEnabled = $false foreach ($finalVolume in $DataHash.NewJobViewModel.NewChiaJob.FinalVolumes){ $finalVolume.ReplotEnabled = $false } $DataHash.NewJobViewModel.NewChiaJob.InitialChiaParameters.BasicFinalDirectory.ReplotEnabled = $false $ReplotConfig_Window.Close() } catch{ Write-PSChiaPlotterLog -LogType ERROR -ErrorObject $_ } } |