dbs_annotator.utils.updater.UpdateChecker
- class dbs_annotator.utils.updater.UpdateChecker(repo='Brain-Modulation-Lab/DBSAnnotator', current_version=None, cooldown=datetime.timedelta(days=1), timeout=10, parent=None)[source]
Bases:
QObjectOrchestrates background update checks with a configurable cooldown.
Create one of these on the main thread (typically owned by the main window) and call
check_async(). Acheck_async(force=True)call bypasses the cooldown – wire it to a “Check for updates” menu action. Automatic checks respectauto_update_checks_enabled()(stored inQSettingsunder_AUTO_CHECK_KEY).Methods
auto_update_checks_enabled()Whether startup / periodic background checks are allowed.
blockSignalscheck_async(*[, force, now])Schedule a background check.
childEventchildrenconnectconnectNotifycustomEventdeleteLaterdisconnectdisconnectNotifydumpObjectInfodumpObjectTreedynamicPropertyNamesemiteventeventFilterfindChildfindChildreninheritsinstallEventFilterisQmlExposedisQuickItemTypeisSignalConnectedisWidgetTypeisWindowTypeis_busy()True while a background GitHub API request is in flight.
killTimermetaObjectmoveToThreadobjectNameparentpropertyreceiversremoveEventFiltersendersenderSignalIndexsetObjectNamesetParentsetPropertyset_auto_update_checks_enabled(enabled)Persist preference for automatic update checks.
signalsBlockedstartTimerthreadtimerEventtrAttributes
destroyedfailedobjectNameChangedstaticMetaObjectup_to_dateupdate_available