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

refactor: ginify SystemPreferences #24675

Merged
merged 3 commits into from
Jul 28, 2020
Merged

refactor: ginify SystemPreferences #24675

merged 3 commits into from
Jul 28, 2020

Conversation

nornagon
Copy link
Member

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 21, 2020
if (@available(macOS 10.14, *)) {
NSAppearance* appearance;
if (args->GetNext(&appearance)) {
[[NSApplication sharedApplication] setAppearance:appearance];
} else {
args->ThrowError("Invalid app appearance provided as first argument");
args->ThrowError();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've lost the Better Error here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, kinda. It matches other gin errors, "Conversion error at index 0". I'm on the fence as to whether consistency or descriptiveness wins here, as the error message here isn't much different to the default one that gin provides.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 22, 2020
@nornagon nornagon merged commit 362da77 into master Jul 28, 2020
@release-clerk
Copy link

release-clerk bot commented Jul 28, 2020

No Release Notes

@nornagon nornagon deleted the ginify-system-preferences branch July 28, 2020 18:03
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.

None yet

3 participants