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

Prevent ST from blinking from one to another scheme #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Argimko
Copy link

@Argimko Argimko commented Feb 24, 2018

No description provided.

@facelessuser
Copy link
Owner

Can you explain what the issue is and how this fixes it?

@facelessuser
Copy link
Owner

Lint issues can be ignored. I need to update the lint environment.

@Argimko
Copy link
Author

Argimko commented Feb 24, 2018 via email

@facelessuser
Copy link
Owner

I think you are mistaking what I was saying. When I was referring to linting, I was referring to linting in this pull requests continuous integration tests below.

As for conflicting with a linter plugin, I'd have to better understand what that linter plugin is doing. If it is modifying the color scheme when ThemeScheduler swaps themes, then that may be something to take up with the linter. But if there is a specific, fundamental issue with ThemeScheduler, then we may need to fix it. Anyways, more details would be needed for me to accept this as I am not sure exactly what this is attempting to fix.

@facelessuser
Copy link
Owner

I still don't feel I understand what the problem is and how this fixes said problem. I need some more information to determine if this is a reasonable pull, or if something else needs to be done. I'm afraid if I can't get anymore information about this, I'll have to close this request.

@Argimko
Copy link
Author

Argimko commented Mar 4, 2018 via email

@facelessuser
Copy link
Owner

Okay, so you are just complaining about refresh of the theme on startup because the theme isn't saved to preference file. So on close, you are left with whatever was originally set, and not what is currently set.

I'll have to do some testing. I'm not sure if you noticed, but there are two paths, a safe save (which manually reads and saves the user preference file), and then there is the path you are editing that uses the API. We initially use the safe save which should physically write the preference file, but additional theme/scheme updates will use the API, but not use the API to save (which you have added).

Safe save came about to avoid a weird case where we were using the API too early and forced the user settings to be erased when we saved. To avoid that, we read the physical settings file sidestepping the API

I need to make sure using a save here never causes the issue to return. So let me investigate.

@Argimko
Copy link
Author

Argimko commented Mar 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants