Repository navigation
[451] Add steamCMD cache clear options - #576
Merged
Merged
Conversation
2 tasks
hk21702
marked this pull request as draft
August 26, 2024 20:03
Collaborator
Author
|
Setting this to draft since clearing the depot cache may not be the full solution. It still needs to be explored. |
hk21702
marked this pull request as ready for review
October 11, 2024 08:22
Collaborator
Author
|
@twstagg Please re-review since there were lots of merge conflicts with main I had to resolve. Just want to make sure nothing broke. |
twstagg
approved these changes
Oct 11, 2024
twstagg
left a comment
Collaborator
There was a problem hiding this comment.
Seems to still work as intended for me. Go nuts!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hopefully fixes #451
Adds options to manually clear steamCMD depot cache, or auto-clear it before any steamCMD download operation.
By default, the option to auto-clear it before steamCMD download operations is enabled. This can be disabled in the settings.
This PR also implements a helper function to more robustly handle rmtree calls. Eventually, everything should be migrated to use this as it has special handling for OSErrors which should not cause fatal crashes for the app in most cases, but instead warn the user.
This PR is dependent on #554 as it uses some of the dialogue classes implemented there.
As a side note, I wonder if the steamCMD wrapper should be re-implemented as a controller. Additionally, it might make sense to rework the settings controller so it is more easily extendable.