Skip to content

Commit

Permalink
Ensure infinite plotting is disabled when replotting
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPig91 committed Jul 13, 2021
1 parent 57252db commit f3ef0b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PSChiaPlotter/Private/Test-ReplotParameters.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function Test-ReplotParameters{
return "Your new plot directory path cannot be any of the old plot directory paths, please create a new folder for the new plots or move the old plots to a different folder!"
}
}
if ($DataHash.NewJobViewModel.NewChiaJob.PlotInfinite -eq $true){
return "Plot Infinite needs to be disabled when the replot feature is in use!"
}
$TotalReplotCount = ($FinalVolumes.OldPlotDirectories | Measure-Object -Property PlotCount -Sum).Sum
if ($TotalReplotCount -lt $DataHash.NewJobViewModel.NewChiaJob.TotalPlotCount){
$Response = Show-MessageBox -Icon Warning -Buttons YesNo -Text "You cannot plot more than the total number of plots you want to replot!`n`nWould you like to change the total plot count to $([string]$TotalReplotCount)?"
Expand Down

0 comments on commit f3ef0b7

Please sign in to comment.