fixed something

This commit is contained in:
Jonathan Dunn 2024-04-01 12:38:29 -04:00
parent 8dadd4b8db
commit 5a4ae78caf
2 changed files with 4 additions and 2 deletions

View File

@ -669,8 +669,7 @@ def run_electron_app():
# Step 2: Check for the './installer/client/gui' directory # Step 2: Check for the './installer/client/gui' directory
target_dir = '../gui' target_dir = '../gui'
if not os.path.exists(target_dir): if not os.path.exists(target_dir):
print(f"The directory { print(f"""The directory {target_dir} does not exist. Please check the path and try again.""")
target_dir} does not exist. Please check the path and try again.")
return return
# Step 3: Check for NPM installation # Step 3: Check for NPM installation

View File

@ -212,6 +212,9 @@ document.addEventListener("DOMContentLoaded", async function () {
alert("Failed to reload models."); alert("Failed to reload models.");
} }
}); });
updatePatternsButton.addEventListener("click", async () => {
window.electronAPI.send("update-patterns");
});
// Submit button click handler // Submit button click handler
submitButton.addEventListener("click", async () => { submitButton.addEventListener("click", async () => {