MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / check_for_updates

Method check_for_updates

deeplabcut/gui/window.py:312–326  ·  view source on GitHub ↗

Start an update check immediately or schedule it after a delay.

(self, *, silent=True, delay_ms=0)

Source from the content-addressed store, hash-verified

310 return self.files
311
312 def check_for_updates(self, *, silent=True, delay_ms=0):
313 """Start an update check immediately or schedule it after a delay."""
314 if self._closing:
315 return
316
317 # supersede old requests
318 if self._update_check_timer.isActive():
319 self._update_check_timer.stop()
320
321 if delay_ms > 0:
322 self._scheduled_update_check_silent = silent
323 self._update_check_timer.start(delay_ms)
324 return
325
326 self._updater.check(silent=silent)
327
328 def _trigger_scheduled_update_check(self):
329 if self._closing:

Callers 2

create_actionsMethod · 0.95

Calls 2

startMethod · 0.80
checkMethod · 0.80

Tested by

no test coverage detected