Skip to content

Commit 57f852d

Browse files
author
Tomek Rembacz
committed
Revert Linux button changes
1 parent 335f070 commit 57f852d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/js/update.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ class UpdateManager {
1717
}
1818

1919
setEvents() {
20-
autoUpdater.autoInstallOnAppQuit = (this.darwin || this.linux) ? true : false;
20+
autoUpdater.autoInstallOnAppQuit = this.darwin;
2121
autoUpdater.on('update-available', info => { this.sendStatusToWindow('Update available', 'available', { ...info }); });
2222
autoUpdater.on('update-not-available', info => { this.sendStatusToWindow('Update not available.', 'not-available', { ...info }); });
2323
autoUpdater.on('error', err => { this.sendStatusToWindow('Error in auto-updater. ' + err, 'error'); });
2424
autoUpdater.on('download-progress', progressObj => { this.sendStatusToWindow('Downloading update...', 'progress', { ...progressObj }); });
2525
autoUpdater.on('update-downloaded', ({ version }) => {
2626
this.sendStatusToWindow('Update downloaded', 'downloaded', { version });
27-
const buttons = (this.darwin || this.linux) ? ['OK'] : ['Restart', 'Later'];
27+
const buttons = this.darwin ? ['OK'] : ['Restart', 'Later'];
2828
const dialogOpts = {
2929
type: 'info',
3030
buttons: buttons,
3131
title: 'Diff Checker Update',
3232
message: 'A new version (' + version + ') has been downloaded.\nPlease restart the application to apply the updates.'
3333
}
3434
dialog.showMessageBox(dialogOpts, response => {
35-
response === 0 && !this.darwin && !this.linux && autoUpdater.quitAndInstall();
35+
response === 0 && !this.darwin && autoUpdater.quitAndInstall();
3636
});
3737
});
3838
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"linux": {
2929
"category": "Productivity",
30-
"target": [ "AppImage", "deb" ]
30+
"target": [ "AppImage" ]
3131
},
3232
"nsisWeb": {
3333
"allowToChangeInstallationDirectory": true,

0 commit comments

Comments
 (0)