Skip to content

Commit

Permalink
Modified installation prompt buttons for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 16, 2023
1 parent 669c8e3 commit e23440f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function fetchReleaseNotes(version) {



autoUpdater.autoDownload = false;

log.transports.file.resolvePathFn = () => path.join(APP_DATA, 'logs/main.log');
log.info('App starting...');

Expand Down Expand Up @@ -76,7 +76,7 @@ autoUpdater.on('update-downloaded', async function (info) {
type: 'info',
title: 'Update Available',
message: `A new version (${info.version}) is available.\n\nRelease Notes:\n${releaseNotes}\n\nDo you want to install it now?`,
buttons: ['Now', 'Install on Exit'],
buttons: ['Quit and Install', 'Install after Exit'],
defaultId: 1,
noLink: true
}).then((result) => {
Expand Down Expand Up @@ -399,6 +399,7 @@ app.whenReady().then(async () => {
})
});
//Update handling
autoUpdater.autoDownload = false;
autoUpdater.checkForUpdatesAndNotify()

});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "0.9.7",
"version": "0.9.8",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ window.addEventListener('DOMContentLoaded', () => {
// Update your UI with the progress information
updateProgressBar.value = progressObj.percent;
// Hide progress when done
if (progressObj.percent > 99) tracking.classList.add('d-none')
if (progressObj.percent === 100) tracking.classList.add('d-none')
});
})

0 comments on commit e23440f

Please sign in to comment.