Skip to content

Conversation

@samuelzamvil
Copy link

This pull request introduces the -RefreshRate parameter for the PowerShell module and the -r flag for the executable, enabling users to specify a custom refresh rate. The addition enhances flexibility and user control, catering to varying hardware setups and preferences. It integrates into the existing codebase, with attention to backward compatibility.

Instead of adding additional ChangeDisplaySettings overload methods, I chose to implement RefreshRate with the default parameter of 0 and with a conditional in ChangeDisplaySettings. This decision was made for simplicity and readability.

@samuelzamvil
Copy link
Author

I've realized that the update to this program 11 months ago broke the powershell module due to how the newer versions of .net handle null coalescing. I've added a working module under cds_legacy which includes the updates to refresh rate.
Essentially, Powershell 5.1 doesn't recognize #nullable enable and throws an error while powershell 7.4 runs just fine.

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.

1 participant