Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
fix restart notification showing wrong action order
Browse files Browse the repository at this point in the history
close #9750
  • Loading branch information
cezaraugusto committed Dec 22, 2017
1 parent 494cf4e commit 0d8b28f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ app.on('ready', () => {
} else {
appActions.showNotification({
buttons: [
{text: locale.translation('yes')},
{text: locale.translation('no')}
{text: locale.translation('no')},
{text: locale.translation('yes')}
],
options: {
persist: false
Expand All @@ -260,7 +260,7 @@ app.on('ready', () => {
})
prefsRestartCallbacks[message] = (buttonIndex, persist) => {
delete prefsRestartCallbacks[message]
if (buttonIndex === 0) {
if (buttonIndex === 1) {
const args = process.argv.slice(1)
args.push('--relaunch')
app.relaunch({args})
Expand Down

0 comments on commit 0d8b28f

Please sign in to comment.