Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Change askClose buttons order
Browse files Browse the repository at this point in the history
  • Loading branch information
brrd committed Mar 10, 2017
1 parent 3fd48be commit d89f385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ Dialogs.prototype = {
userChoice = dialog.showMessageBox(this.win, {
title: this.localizer.get('confirm-close-title'),
message: this.localizer.get('confirm-close-message', [filename]),
buttons: [this.localizer.get('button-cancel'), this.localizer.get('confirm-save-and-close'), this.localizer.get('confirm-close-without-saving')],
buttons: [this.localizer.get('button-cancel'), this.localizer.get('confirm-close-without-saving'), this.localizer.get('confirm-save-and-close')],
defaultId: 2,
noLink: true
});
switch (userChoice) {
case 1:
saveFunc(closeFunc);
closeFunc();
break;
case 2:
closeFunc();
saveFunc(closeFunc);
break;
}
return false;
Expand Down

0 comments on commit d89f385

Please sign in to comment.