Skip to content

Commit db01c60

Browse files
author
Emmanouil Konstantinidis
committed
Hide app icon if errored
1 parent 01ba443 commit db01c60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ app.on('ready', function(){
9898
.on('error', function(event, message) {
9999
console.log('ERRORED.');
100100
console.log('Event: ' + JSON.stringify(event) + '. MESSAGE: ' + message);
101+
app.dock.hide();
101102
})
102103
.on('checking-for-update', function () {
103104
console.log('Checking for update');
104105
})
105106
.on('update-available', function () {
106107
console.log('Update available');
108+
// AutoUpdater Downloads the update automatically
107109
})
108110
.on('update-not-available', function () {
109111
console.log('Update not available');
@@ -126,7 +128,7 @@ app.on('ready', function(){
126128
buttons: ['Update & Restart', 'Cancel'],
127129
title: 'Update Available',
128130
cancelId: 99,
129-
message: 'There is an update available. Would you like to update the app now?'
131+
message: 'There is an update available. Would you like to update Gitify now?'
130132
}, function (response) {
131133
console.log('Exit: ' + response);
132134
app.dock.hide();

0 commit comments

Comments
 (0)