Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RestorePoint being always selected by default #2801

Merged

Conversation

Marterich
Copy link
Contributor

Type of Change

  • Bug fix

Description

There was a Bug in the new function to build the UI where, when the option "Checked" was present, the Checkbox would always be checked, even if the value was "Checked" : "False"
Now it correctly differentiates between "True" and "False"

Issue related to PR

Additional Information

The technical Problem was, that "False" got parsed as a string, so
if ($checked) would always return true because in Powershell this only checks if the variable is assigned.

@Marterich Marterich changed the title Explicitly look for a Boolean Result Fix RestorePoint being always selected by default Sep 22, 2024
@ChrisTitusTech ChrisTitusTech merged commit b9d7619 into ChrisTitusTech:main Sep 23, 2024
1 check passed
@Marterich Marterich deleted the fix-restorepoint-checked branch October 3, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore point option filled as default
2 participants