Don't persist credential helper setting unless it's changed

This commit is contained in:
Markus Olsson 2024-06-20 09:21:35 -04:00
parent 1acc9d2d92
commit b298938c4f

View file

@ -714,9 +714,14 @@ export class Preferences extends React.Component<
)
if (enableExternalCredentialHelper()) {
this.props.dispatcher.setUseExternalCredentialHelper(
if (
this.props.useExternalCredentialHelper !==
this.state.useExternalCredentialHelper
)
) {
this.props.dispatcher.setUseExternalCredentialHelper(
this.state.useExternalCredentialHelper
)
}
}
await this.props.dispatcher.setConfirmRepoRemovalSetting(