Skip to content

Commit

Permalink
File->Exitから終了しようとしたときにダイアログが2回もでるバグの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki-4ys committed May 6, 2020
1 parent 0ca1682 commit 84cda75
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,7 @@ function OverWriteToRKG(){
}

function Exit(){
if(isEdited){
var answer = dialog.showMessageBoxSync(mainWindow,{type:'question',
message:'changes are not saved.\nwould you exit?',title:'',
buttons:['Yes','No']});
if(answer === 1){
return;
}
}
app.quit();
mainWindow.close();
}

//タイトルに表示させる文字列の作成
Expand Down

0 comments on commit 84cda75

Please sign in to comment.