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

Only update .pcmanx/pcmanx and .pcmanx/favorites when needed. Fix #86. #87

Closed
wants to merge 2 commits into from

Conversation

hwangcc23
Copy link
Contributor

This PR fixes the issue #86.

As-is:
1). Always write configurations to the file whenever the program is going to close.
2). Always write favorites to the file whenever the program is going to close.

To-be:
1). Remove the call of AppConfig.Save() on exit. Add checks to configurations before saving.
2). Remove the call of SaveFavorites() on exit. Add a check to compare favorites lists before saving in the callback OnEditFavorites().

As-is: Always write favorites to the file whenever the program is going to close.
To-be: Remove the call of SaveFavorites() on exit. Add a check to compare favorites lists before saving in the callback OnEditFavorites().
As-is: Always write configurations to the file whenever the program is going to close.
To-be: Remove the call of AppConfig.Save() on exit. Add checks to configurations before saving.
@kidwm kidwm requested a review from czchen March 11, 2017 02:50
@hwangcc23
Copy link
Contributor Author

@czchen ping

@hwangcc23 hwangcc23 closed this Dec 24, 2020
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