From ec520cdbf5226c7776d13b1ca0a57a20ba825dc3 Mon Sep 17 00:00:00 2001 From: Extremesecrecy <10959169+extremesecrecy@users.noreply.github.com> Date: Sun, 27 Jul 2025 08:46:25 -0700 Subject: [PATCH] Ok handler Set settings before closing the page. --- vite/src/pipedal/JackServerSettingsDialog.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite/src/pipedal/JackServerSettingsDialog.tsx b/vite/src/pipedal/JackServerSettingsDialog.tsx index 5f7f7ce..036dcf5 100644 --- a/vite/src/pipedal/JackServerSettingsDialog.tsx +++ b/vite/src/pipedal/JackServerSettingsDialog.tsx @@ -563,7 +563,12 @@ const JackServerSettingsDialog = withStyles( s.valid = true; // Accept the new settings so handleClose doesn't revert this.originalJackServerSettings = undefined; - this.props.onApply(s); + // Apply the new settings immediately and persist them. + this.model.applyJackServerSettings(s); + this.model.setJackServerSettings(s); + if (this.props.onApply) { + this.props.onApply(s); + }