MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / simulateUpdateDialog

Function simulateUpdateDialog

apps/desktop/main/update.ts:303–314  ·  view source on GitHub ↗
(_win)

Source from the content-addressed store, hash-verified

301 * 控制台通过:window.api.app.simulateUpdate() 测试
302 */
303const simulateUpdateDialog = (_win) => {
304 dialog.showMessageBox({
305 title: t('update.newVersionTitle', { version: '9.9.9' }),
306 message: t('update.newVersionMessage', { version: '9.9.9' }),
307 detail: t('update.newVersionDetail'),
308 buttons: [t('update.downloadNow'), t('update.cancel')],
309 defaultId: 0,
310 cancelId: 1,
311 type: 'question',
312 noLink: true,
313 })
314}
315
316export { checkUpdate, simulateUpdateDialog, manualCheckForUpdates }

Callers 1

registerWindowHandlersFunction · 0.90

Calls 1

tFunction · 0.90

Tested by

no test coverage detected