mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
cleanup unresponsiveDialog
This commit is contained in:
6
index.js
6
index.js
@ -341,15 +341,11 @@ function showUnresponsiveDialog(win, details) {
|
|||||||
case 1: //if relaunch - relaunch+exit
|
case 1: //if relaunch - relaunch+exit
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
case 2:
|
case 2:
|
||||||
app.exit();
|
app.quit();
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
//maybe set a timer and afterwards check responsivness and call function again if failed
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.aDialog = showUnresponsiveDialog;
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user