mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-09 05:31: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(opts.GeneralAutofillEnabled)
|
||||||
err = chromium.PutIsGeneralAutofillEnabled(true)
|
if err != nil {
|
||||||
if err != nil {
|
if errors.Is(err, edge.UnsupportedCapabilityError) {
|
||||||
if errors.Is(edge.UnsupportedCapabilityError, err) {
|
globalApplication.warning("unsupported capability: GeneralAutofillEnabled")
|
||||||
// warning
|
} else {
|
||||||
globalApplication.warning("unsupported capability: GeneralAutofillEnabled")
|
globalApplication.handleFatalError(err)
|
||||||
} else {
|
|
||||||
globalApplication.handleFatalError(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.PasswordAutosaveEnabled {
|
err = chromium.PutIsPasswordAutosaveEnabled(opts.PasswordAutosaveEnabled)
|
||||||
err = chromium.PutIsPasswordAutosaveEnabled(true)
|
if err != nil {
|
||||||
if err != nil {
|
if errors.Is(err, edge.UnsupportedCapabilityError) {
|
||||||
if errors.Is(edge.UnsupportedCapabilityError, err) {
|
globalApplication.warning("unsupported capability: PasswordAutosaveEnabled")
|
||||||
globalApplication.warning("unsupported capability: PasswordAutosaveEnabled")
|
} else {
|
||||||
} else {
|
globalApplication.handleFatalError(err)
|
||||||
globalApplication.handleFatalError(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user