INNER CODE UNIT · TypeScript
installUpdate
elie222/inbox-zero · apps/desktop/src/main.ts:273
const installUpdate = () => {
installDownloadedDesktopUpdate(() => {
isQuitting = true;
}).catch(logDesktopUpdateError);
};
const applyDesktopMenu = () => {
configureDesktopApplicationMenu({
updateReady: desktopUpdateReady,
downloadPercent,
checkForUpdates: () => {
if (desktopUpdateReady) {
installUpdate();
return;
}
checkForDesktopUpdatesManually(() => {
isQuitting = true;
}).catch(logDesktopUpdateError);
},