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: QObject

Orchestrates 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(). A check_async(force=True) call bypasses the cooldown – wire it to a “Check for updates” menu action. Automatic checks respect auto_update_checks_enabled() (stored in QSettings under _AUTO_CHECK_KEY).

Methods

auto_update_checks_enabled()

Whether startup / periodic background checks are allowed.

blockSignals

check_async(*[, force, now])

Schedule a background check.

childEvent

children

connect

connectNotify

customEvent

deleteLater

disconnect

disconnectNotify

dumpObjectInfo

dumpObjectTree

dynamicPropertyNames

emit

event

eventFilter

findChild

findChildren

inherits

installEventFilter

isQmlExposed

isQuickItemType

isSignalConnected

isWidgetType

isWindowType

is_busy()

True while a background GitHub API request is in flight.

killTimer

metaObject

moveToThread

objectName

parent

property

receivers

removeEventFilter

sender

senderSignalIndex

setObjectName

setParent

setProperty

set_auto_update_checks_enabled(enabled)

Persist preference for automatic update checks.

signalsBlocked

startTimer

thread

timerEvent

tr

Attributes

destroyed

failed

objectNameChanged

staticMetaObject

up_to_date

update_available