From bde5c534d46be2bbe09eba7935d3621fec6182fc Mon Sep 17 00:00:00 2001 From: Maarten <50550545+mmvanheusden@users.noreply.github.com> Date: Sat, 9 Dec 2023 13:06:42 +0100 Subject: [PATCH] fix: fix checkpath button enabled when it shouldn't --- downloader.js | 4 +++- index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/downloader.js b/downloader.js index 958fbdbc..c082adaa 100644 --- a/downloader.js +++ b/downloader.js @@ -210,7 +210,9 @@ window.addEventListener("DOMContentLoaded", () => { document.getElementById("pickpath").addEventListener("click", () => { if (document.getElementById("pickpath").disabled === false) ipcRenderer.send("selectpath") }) - document.getElementById("checkpath").addEventListener("click", checkPath) + document.getElementById("checkpath").addEventListener("click", () => { + if (document.getElementById("checkpath").disabled === false) checkPath() + }) document.getElementById("osdropdown").addEventListener("input", validateChoice) document.getElementById("downloadbtn").addEventListener("click", () => { if (document.getElementById("downloadbtn").disabled === false) submitForm() diff --git a/index.html b/index.html index cdf353cf..992923b1 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@
+ class="form-control btn btn-sm ml-2 tooltipped tooltipped-ne" id="checkpath" aria-disabled="true"> Open location