-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Add update button for adnauseam.txt only #752
Comments
I have tried to figure out what happens when user clicks "update now" button and this is the process that I understand: 2.Reload local filter lists If we want to achieve the feature that we talked about yesterday (update adnauseam.txt from github server), I think we need to move the file from 'filters' folder to 'thirdparties' and configure the remote link in filter-lists.json. So that it can follows the mechanism of all other third party filters and be updated from remote. So currently it seems to me that adnauseam.txt will only get updated from a new release for ordinary users. Please correct me if I am wrong. |
I don't think this is correct... adnauseam.txt is fetched from Github when it is marked as being different than what is on there: so we need to figure out where the check is done when the 'new version available' label is added, and then do that same check ourselves when the 'update' button is pressed; then if a new-version is there, download it and update the cache |
@cqx931 -- note also this important PR: gorhill#2314 makes me think we should wait until post-merge before working further on this further -- your thoughts? |
yes, agreed. |
blocked on merge ticket |
With the new code, there are two way you may want to do this:
If you use this approach, you will have to modify the
The Calling When an asset is updated, the asset manager fires a notification to observers registered through |
@gorhill thanks for this -- super helpful |
I have added an update button based on the new asset. |
we need a quick way for ourselves and users to quickly update this one list to the version in uAssets on github
The text was updated successfully, but these errors were encountered: