5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-01 13:31:25 +08:00

Update options docs to clarify linux webview gpu defaults

This commit is contained in:
B.T 2025-03-25 08:10:44 -04:00 committed by GitHub
parent 993fde17fe
commit 9c7dc05cea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,7 @@ func main() {
Linux: &linux.Options{
Icon: icon,
WindowIsTranslucent: false,
WebviewGpuPolicy: linux.WebviewGpuPolicyAlways,
WebviewGpuPolicy: linux.WebviewGpuPolicyNever,
ProgramName: "wails"
},
Debug: options.Debug{
@ -1066,7 +1066,8 @@ This option is used for determining the webview's hardware acceleration policy.
Name: WebviewGpuPolicy<br/>
Type: [`options.WebviewGpuPolicy`](#webviewgpupolicy-type)<br/>
Default: `WebviewGpuPolicyAlways`
Default (Windows, macOS): `WebviewGpuPolicyAlways`<br/>
Default (Linux): `WebviewGpuPolicyNever`<br/>
##### WebviewGpuPolicy type