Fix malfunctioning if-conditions

This commit is contained in:
Manuel Thalmann 2023-07-09 00:18:53 +02:00
parent f581dda11d
commit ae0b943dac

View file

@ -28,11 +28,11 @@ $Global:SetupConfigPostprocessor = {
if ($order -eq 2) {
$newOrder--;
} else {
if ($order -ge $newIndex) {
if ($newOrder -lt 2) {
$newOrder++;
}
if ($order -lt 2) {
if ($newOrder -ge $newIndex) {
$newOrder++;
}
}
@ -64,11 +64,11 @@ $Global:SetupConfigPostprocessor = {
if ($partitionID -eq 2) {
$newID--;
} else {
if ($partitionID -ge $newIndex) {
if ($newID -lt 2) {
$newID++;
}
if ($partitionID -lt 2) {
if ($newID -ge $newIndex) {
$newID++;
}
}