fix: removed calls to restart function

This commit is contained in:
Rick van Lieshout 2023-08-28 11:14:13 +02:00
parent 3df82b93db
commit cbb22ba688

View File

@ -154,14 +154,6 @@ function hide() {
ipcRenderer.send(globalEvents.hideSettings); ipcRenderer.send(globalEvents.hideSettings);
} }
/**
* Restart TIDAL Hi-Fi after changes
*/
function restart() {
app.relaunch();
app.exit();
}
/** /**
* Bind UI components to functions after DOMContentLoaded * Bind UI components to functions after DOMContentLoaded
*/ */
@ -174,7 +166,6 @@ window.addEventListener("DOMContentLoaded", () => {
handleFileUploads(); handleFileUploads();
document.getElementById("close").addEventListener("click", hide); document.getElementById("close").addEventListener("click", hide);
document.getElementById("restart").addEventListener("click", restart);
document.querySelectorAll(".external-link").forEach((elem) => document.querySelectorAll(".external-link").forEach((elem) =>
elem.addEventListener("click", function (event) { elem.addEventListener("click", function (event) {
openExternal((event.target as HTMLElement).getAttribute("data-url")); openExternal((event.target as HTMLElement).getAttribute("data-url"));