Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Extend the color profile PR (#17380) - #17464

Merged
daviwil merged 2 commits into
fix-color-problems-using-electron-2.0from
extended-color-profile-bits
Jun 4, 2018
Merged

daviwil merged 2 commits into
fix-color-problems-using-electron-2.0from
extended-color-profile-bits

Conversation

@thomasjo

@thomasjo thomasjo commented Jun 4, 2018

Copy link
Copy Markdown
Contributor

Description of the Change

Extends #17380 by wiring up the dialog prompt for restarting Atom whenever the core.colorProfile setting is changed. Since this removes the need for the explicit description remark about restarting Atom, that sentence is also removed.

The third (and optional) change alters the bound functions used when wiring up the change event listeners to arrow functions. We can drop that commit if it's deemed risky, not necessary, or some such.

Alternate Designs

A more elaborate opt-in mechanism for "prompt for relaunch" was considered, but rejected after taking into consideration the concept of YAGNI™.

Why Should This Be In Core?

For obvious reasons.

Benefits

Users do not have to manually restart Atom. Some users will likely not read the description and realize they need to manually restart Atom, which would most likely lead to issues being submitted, etc.

Possible Drawbacks

More code, and complexity?

Verification Process

Manually tested on Ubuntu 16.04. Works as expected.

Comment thread src/config-schema.js Outdated
},
colorProfile: {
description: "Specify whether Atom should use the operating system's color profile (recommended) or an alternative color profile.<br>Changing this setting will require a relaunch of Atom to take effect.",
description: "Specify whether Atom should use the operating system's color profile (recommended) or an alternative color profile.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The relaunch line is included in https://github.com/atom/atom/pull/17464/files#diff-8c99efd21425e5773e52ba4fbb820bf0L574, the other setting that requires a restart. If this one is removed, then the other should be as well.

@thomasjo thomasjo Jun 4, 2018 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thought I checked that one, but guess I didn't scroll far enough. Good catch, @50Wliu 🥇

Personally I vote for removing the sentence in both places since it feels a bit superfluous since we have the prompt. What do other folks think? /cc @atom/feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it's good to inform the user that a restart will be required even if we're going to prompt them. This will make sure they understand why they're being prompted for a restart. I'd say leave the message in for the sake of clarity

@daviwil

daviwil commented Jun 4, 2018

Copy link
Copy Markdown
Contributor

This change is simple enough that I don't see any problem merging this PR right after I merge the color profile PR. I think I'd prefer leaving the "restart" language in the setting description though, just for the sake of clarity.

Thanks again for putting this together!

@thomasjo
thomasjo force-pushed the extended-color-profile-bits branch from c7935c5 to 4a2b585 Compare June 4, 2018 19:40
@daviwil

daviwil commented Jun 4, 2018

Copy link
Copy Markdown
Contributor

That was ninja-fast ;)

@daviwil daviwil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🙇‍♂️

@daviwil

daviwil commented Jun 4, 2018

Copy link
Copy Markdown
Contributor

Just waiting on CI to finish before merging this. Super slow today!

@daviwil
daviwil merged commit a2fe4c3 into fix-color-problems-using-electron-2.0 Jun 4, 2018
@daviwil
daviwil deleted the extended-color-profile-bits branch June 4, 2018 20:29
daviwil added a commit that referenced this pull request Jun 4, 2018
@daviwil
daviwil restored the extended-color-profile-bits branch June 4, 2018 21:20
@daviwil
daviwil deleted the extended-color-profile-bits branch June 4, 2018 21:22
daviwil added a commit that referenced this pull request Jun 4, 2018
@bittin bittin mentioned this pull request Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants