diff --git a/README.md b/README.md index 7546396..1a5c3e5 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Follow the on-screen prompts to download and install the MicroPython firmware. - Arduino Nano ESP32 - Arduino Nano 33 BLE +**Note:** This tool may work for 3rd party boards too. This is however not officially supported. + ## ⚙️ Installation You can download the binary for your operating system from the [release page](https://github.com/arduino/lab-micropython-package-installer/releases). diff --git a/renderer.js b/renderer.js index 85dd594..53de1ee 100644 --- a/renderer.js +++ b/renderer.js @@ -29,6 +29,20 @@ document.addEventListener('DOMContentLoaded', async () => { // Show loading spinner packageList.innerHTML = '
'; + // Load initial state of the checkboxes from local storage + compileFilesCheckbox.checked = localStorage.getItem('compileFiles') === 'true'; + overwriteExistingCheckbox.checked = localStorage.getItem('overwriteExisting') === 'true'; + + compileFilesCheckbox.addEventListener('change', () => { + // Persist the user's selection in local storage + localStorage.setItem('compileFiles', compileFilesCheckbox.checked); + }); + + overwriteExistingCheckbox.addEventListener('change', () => { + // Persist the user's selection in local storage + localStorage.setItem('overwriteExisting', overwriteExistingCheckbox.checked); + }); + deviceSelectionList.addEventListener("device-selected", (event) => { selectedDeviceItem = event.target; console.log("Selected device item:", selectedDeviceItem);