From 2eb8c29e16cdcf2d6b9bef58df52d74749d67913 Mon Sep 17 00:00:00 2001 From: Extremesecrecy <10959169+extremesecrecy@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:05:21 -0700 Subject: [PATCH] Handlers settings change. Fixing handlers. Great progress! --- vite/src/pipedal/JackServerSettingsDialog.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/vite/src/pipedal/JackServerSettingsDialog.tsx b/vite/src/pipedal/JackServerSettingsDialog.tsx index f3f3c2e..cfeeab4 100644 --- a/vite/src/pipedal/JackServerSettingsDialog.tsx +++ b/vite/src/pipedal/JackServerSettingsDialog.tsx @@ -601,12 +601,14 @@ const JackServerSettingsDialog = withStyles( if (!this.state.okEnabled) return; const proceedWithOk = () => { + const settings = this.state.jackServerSettings.clone(); + settings.valid = true; this.ignoreClose = true; // Indicate that the closing is intentional - this.applySettings(); // Fire and forget - this.saveSettings(); // Fire and forget + this.applySettings(settings); // Fire and forget + this.saveSettings(settings); // Fire and forget this.originalJackServerSettings = undefined; if (this.props.onApply) { - this.props.onApply(this.state.jackServerSettings.clone()); + this.props.onApply(settings.clone()); } this.props.onClose(); // Close the dialog }; @@ -626,12 +628,14 @@ const JackServerSettingsDialog = withStyles( this.suppressDeviceWarning = true; } this.setState({ showDeviceWarning: false, dontShowWarningAgain: false }, () => { + const settings = this.state.jackServerSettings.clone(); + settings.valid = true; this.ignoreClose = true; - this.applySettings(); // Fire and forget - this.saveSettings(); // Fire and forget + this.applySettings(settings); // Fire and forget + this.saveSettings(settings); // Fire and forget this.originalJackServerSettings = undefined; if (this.props.onApply) { - this.props.onApply(this.state.jackServerSettings.clone()); + this.props.onApply(settings.clone()); } this.props.onClose(); // Close the dialog after the warning });