mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-08 21:11:40 +08:00
fix: general auto save and general password auto save always enabled
This commit is contained in:
parent
3b101705d5
commit
0be2efc275
@ -1665,26 +1665,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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user