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

auto check wont check #89

Open
Lynchon83 opened this issue Oct 9, 2023 · 7 comments
Open

auto check wont check #89

Lynchon83 opened this issue Oct 9, 2023 · 7 comments

Comments

@Lynchon83
Copy link

Hi,

The updater works fine if I manually search for updates but, even if I have enabled auto-check in the preferences panel, it wont launch the function that searches for updates in bitbucket.

I've changed the interval property (inside class DemoPreferences(bpy.types.AddonPreferences)) to just one minute in order to see if it looks for any update but nothing happens.

Is there any other seting I should check?

@schroef
Copy link
Contributor

schroef commented Nov 2, 2023

Do you see any errors in the console?

@TheDuckCow
Copy link
Collaborator

Sorry for missing this question @Lynchon83! The other thing is to try restarting blender and then checking if it did the check. The trigger is meant to occur not exactly at the time the interval is reached, but rather at the next eligible time, ie when someone starts a new session. This is to avoid having overhead of a constantly running polling mechanism.

@TheDuckCow
Copy link
Collaborator

Checkin in - is this still a problem?

@iMaciaP
Copy link

iMaciaP commented Feb 28, 2024

Hi @TheDuckCow ,

I managed to achieve this feature by adding a "bpy.app.handlers.load_post" handler and call the check now operator. And with that, i call the op whenever a file is loaded, because otherwise old files will remain in "check now for updates" status.

if the setting "check_interval" does not stablish a time interval when will be checked for updates i consider it misspelling.

# Optional, to hard-set update frequency, use this here - however, this
# demo has this set via UI properties.
updater.set_check_interval(enabled=True, months=0, days=0, hours=0, minutes=1

@schroef
Copy link
Contributor

schroef commented Feb 28, 2024

@iMaciaP
But won't that show the popup dialog each time you open a file and then choose to neglect it?

@iMaciaP
Copy link

iMaciaP commented Mar 6, 2024

@schroef no, i do not have that behaviour when auto launching the check update

@schroef
Copy link
Contributor

schroef commented Mar 6, 2024 via email

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

No branches or pull requests

4 participants