From cc987e0ee28859d30c145fea69580a64de8b87d2 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Fri, 21 Nov 2025 21:15:34 +0300 Subject: [PATCH] Macos fixes --- html/index.html | 2 +- src/renderer.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index 9f632c3..5d640e1 100644 --- a/html/index.html +++ b/html/index.html @@ -43,7 +43,7 @@
Open Homebrew - +
diff --git a/src/renderer.js b/src/renderer.js index 63e97ae..7123491 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -25,6 +25,7 @@ const CONSTANTS = { TITLE_INPUT: "titleName", URL_INPUTS: ".url", AUDIO_PRESENT_SECTION: "audioPresent", + QUIT_APP_BTN: "quitAppBtn", // Format Selectors VIDEO_FORMAT_SELECT: "videoFormatSelect", AUDIO_FORMAT_SELECT: "audioFormatSelect", @@ -310,6 +311,8 @@ class YtDownloaderApp { } $(CONSTANTS.DOM_IDS.POPUP_BOX_MAC).style.display = "block"; + + return "" } else if (platform() === "freebsd") { try { const foundPath = execSync("which yt-dlp").toString().trim(); @@ -652,6 +655,10 @@ class YtDownloaderApp { this._showPopup(i18n.__("copiedText"), false); }); + $(CONSTANTS.DOM_IDS.QUIT_APP_BTN).addEventListener("click", () => { + ipcRenderer.send("quit", "quit"); + }); + // IPC listeners ipcRenderer.on("link", (event, text) => this.getInfo(text)); ipcRenderer.on("downloadPath", (event, downloadPath) => {