mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 20:01:47 +00:00
fix unresponsive dialog response
This commit is contained in:
8
index.js
8
index.js
@ -333,11 +333,11 @@ function showUnresponsiveDialog(win, details) {
|
|||||||
type: "error",
|
type: "error",
|
||||||
title: "Window Unresponsive",
|
title: "Window Unresponsive",
|
||||||
message: "The Application is Unresponsive",
|
message: "The Application is Unresponsive",
|
||||||
details: "We are sorry for the inconveniance! please choose what to do with the application:",
|
details: "We are sorry for the inconveniance! please choose what to do:",
|
||||||
buttons: ["Wait", "Relaunch", "Quit"],
|
buttons: ["Wait", "Relaunch", "Quit"],
|
||||||
cancelId: 0
|
cancelId: 0
|
||||||
}).then( response => {
|
}).then( result => {
|
||||||
switch (response) {
|
switch (result.response) {
|
||||||
case 1: //if relaunch - relaunch+exit
|
case 1: //if relaunch - relaunch+exit
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
case 2:
|
case 2:
|
||||||
@ -345,7 +345,7 @@ function showUnresponsiveDialog(win, details) {
|
|||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user