Handlers settings change.

Fixing handlers. Great progress!
This commit is contained in:
Extremesecrecy
2025-07-27 18:05:21 -07:00
parent fd7319cec0
commit 2eb8c29e16
+10 -6
View File
@@ -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
});