(e)
| 1324 | let updateNoAvailAdded = false; |
| 1325 | |
| 1326 | function checkForUpdatesFn(e) |
| 1327 | { |
| 1328 | if (e != null && e.senderFrame != null && |
| 1329 | !validateSender(e.senderFrame)) return null; |
| 1330 | |
| 1331 | manualUpdateCheck = true; |
| 1332 | safeUpdaterCall('checkForUpdates (manual)', () => autoUpdater.checkForUpdates()); |
| 1333 | |
| 1334 | if (!updateNoAvailAdded) |
| 1335 | { |
| 1336 | updateNoAvailAdded = true; |
| 1337 | autoUpdater.on('update-not-available', safeUpdaterListener('update-not-available', (info) => |
| 1338 | { |
| 1339 | if (!manualUpdateCheck) return; // Suppress dialog for boot-time silent checks |
| 1340 | |
| 1341 | manualUpdateCheck = false; |
| 1342 | dialog.showMessageBox( |
| 1343 | { |
| 1344 | type: 'info', |
| 1345 | title: 'No updates found', |
| 1346 | message: 'Your application is up-to-date', |
| 1347 | }) |
| 1348 | })) |
| 1349 | } |
| 1350 | }; |
| 1351 | |
| 1352 | var zoomSteps = [0.25, 0.33, 0.5, 0.67, 0.75, 0.8, 0.9, 1, |
| 1353 | 1.1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5]; |
nothing calls this directly
no test coverage detected