Add support for auto-pausing when factor is found

This commit is contained in:
ItsDrike 2025-02-26 14:59:07 +01:00
parent 12caef0a51
commit 18b6e69e9f
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 47 additions and 5 deletions

View file

@ -93,10 +93,20 @@ ApplicationWindow {
}
}
CheckBox {
text: "Stop at sqrt(n)"
checked: true
onCheckedChanged: factorizationController.useSqrtOptimization = checked
RowLayout {
Layout.fillWidth: true
CheckBox {
text: "Stop at sqrt(n)"
checked: factorizationController.useSqrtOptimization
onCheckedChanged: factorizationController.useSqrtOptimization = checked
}
CheckBox {
text: "Pause when factor found"
checked: factorizationController.pauseOnFound
onCheckedChanged: factorizationController.pauseOnFound = checked
}
}
}
}