diff --git a/desktop/main.go b/desktop/main.go index 0f35345..e9bf9da 100644 --- a/desktop/main.go +++ b/desktop/main.go @@ -17,6 +17,7 @@ import ( "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/options" "github.com/wailsapp/wails/v2/pkg/options/assetserver" + "github.com/wailsapp/wails/v2/pkg/options/mac" "github.com/wailsapp/wails/v2/pkg/options/windows" "github.com/wailsapp/wails/v2/pkg/runtime" ) @@ -98,6 +99,17 @@ func main() { app.StopEngine() }, Bind: []any{app}, + // This block has to EXIST, not merely be empty. Wails computes + // `zoomable = !Mac.DisableZoom` inside `if frontendOptions.Mac != + // nil`, and the variable defaults to 0 - so leaving Mac unset does not + // mean "defaults", it means the green maximise button is created dead. + // There was a Windows block and no Mac one, so the window could not be + // zoomed on macOS and nothing anywhere said why. + Mac: &mac.Options{ + WebviewIsTransparent: false, + WindowIsTranslucent: false, + DisableZoom: false, + }, Windows: &windows.Options{ WebviewIsTransparent: false, WindowIsTranslucent: false,