()
| 633 | // STL Home Clear Directory (early for Docker/server) |
| 634 | window.clearSTLHomeDirectory = async function clearSTLHomeDirectory() { |
| 635 | const input = document.getElementById('stl-home-directory'); |
| 636 | if (input) input.value = ''; |
| 637 | if (window.electron?.saveSetting) await window.electron.saveSetting('stlHome', ''); |
| 638 | if (typeof window.updateScanStlHomeButtonVisibility === 'function') window.updateScanStlHomeButtonVisibility(); |
| 639 | if (typeof window.stopPeriodicSTLHomeScan === 'function') window.stopPeriodicSTLHomeScan(); |
| 640 | const dialog = document.getElementById('stl-home-dialog'); |
| 641 | if (dialog && typeof dialog.close === 'function') dialog.close(); |
no test coverage detected