(self, silent: bool = True)
| 137 | return self._running |
| 138 | |
| 139 | def check(self, silent: bool = True): |
| 140 | if self._running: |
| 141 | # if a manual check happens while a silent one is running, |
| 142 | # keep the in-flight request but upgrade the result visibility |
| 143 | self._silent = self._silent and silent |
| 144 | return |
| 145 | |
| 146 | self._running = True |
| 147 | self._silent = silent |
| 148 | self._result = { |
| 149 | "silent": silent, |
| 150 | "is_latest": True, |
| 151 | "latest_version": None, |
| 152 | "is_latest_plugin": True, |
| 153 | "latest_plugin_version": None, |
| 154 | "error": None, |
| 155 | } |
| 156 | |
| 157 | self._start_request("dlc", self.DLC_URL) |
| 158 | self._start_request("napari-dlc", self.NAPARI_DLC_URL) |
| 159 | self._timer.start(self._timeout_ms) |
| 160 | |
| 161 | def cancel(self): |
| 162 | if not self._running: |
no test coverage detected