Merge pull request #4134 from oSethoum/v3-alpha-bugfix-auto_fill-auto_password_save

[v3] fix: general auto save and general password auto save always enabled
This commit is contained in:
Lea Anthony 2025-04-18 15:46:32 +10:00 committed by GitHub
commit 7e5edfdfe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 17 deletions

View file

@ -75,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add method `Close` on `sqlite` service to close the DB manually by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067)
- Add cancellation support for query methods on `sqlite` service by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067)
- Add prepared statement support to `sqlite` service with JS bindings by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067)
- Fix auto save and password auto save always enabled by [@oSethoum](https://github.com/osethoum) in [#4134](https://github.com/wailsapp/wails/pull/4134)
- Add `SetMenu()` on window to allow for setting a menu on a window by [@leaanthony](https://github.com/leaanthony)
- Add Notification support by [@popaprozac] in [#4098](https://github.com/wailsapp/wails/pull/4098)
-  Add File Association support for mac by [@wimaha](https://github.com/wimaha) in [#4177](https://github.com/wailsapp/wails/pull/4177)

View file

@ -1672,26 +1672,21 @@ func (w *windowsWebviewWindow) setupChromium() {
}
if opts.GeneralAutofillEnabled {
err = chromium.PutIsGeneralAutofillEnabled(true)
if err != nil {
if errors.Is(edge.UnsupportedCapabilityError, err) {
// warning
globalApplication.warning("unsupported capability: GeneralAutofillEnabled")
} else {
globalApplication.handleFatalError(err)
}
err = chromium.PutIsGeneralAutofillEnabled(opts.GeneralAutofillEnabled)
if err != nil {
if errors.Is(err, edge.UnsupportedCapabilityError) {
globalApplication.warning("unsupported capability: GeneralAutofillEnabled")
} else {
globalApplication.handleFatalError(err)
}
}
if opts.PasswordAutosaveEnabled {
err = chromium.PutIsPasswordAutosaveEnabled(true)
if err != nil {
if errors.Is(edge.UnsupportedCapabilityError, err) {
globalApplication.warning("unsupported capability: PasswordAutosaveEnabled")
} else {
globalApplication.handleFatalError(err)
}
err = chromium.PutIsPasswordAutosaveEnabled(opts.PasswordAutosaveEnabled)
if err != nil {
if errors.Is(err, edge.UnsupportedCapabilityError) {
globalApplication.warning("unsupported capability: PasswordAutosaveEnabled")
} else {
globalApplication.handleFatalError(err)
}
}