fix(server): add missing SetScreen method to BrowserWindow#5294
fix(server): add missing SetScreen method to BrowserWindow#5294leaanthony merged 1 commit intomasterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA no-op ChangesInterface Implementation
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested Labels
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
There was a problem hiding this comment.
Pull request overview
Adds the missing SetScreen(*Screen) Window method to the server-mode BrowserWindow so it satisfies the Window interface when building with -tags server (fixing the compile break introduced when SetScreen was added to the interface).
Changes:
- Implement
BrowserWindow.SetScreen(screen *Screen) Windowas a no-op that returns the receiver (consistent with other browser-window no-op methods).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…add missing SetScreen method to BrowserWindow
Closes #5262.
BrowserWindow was missing
SetScreen(screen *Screen) Window, which was added to theWindowinterface in #5067. This caused a compile error when building with-tags server.The fix follows the existing no-op pattern for methods that have no meaning for browser clients.
Verified:
go build -tags server ./v3/pkg/application/andgo build -tags server ./v3/examples/dock/both pass.Summary by CodeRabbit
SetScreenmethod for configuring screen settings. The method returns the window instance, enabling method chaining patterns for fluent API usage. This provides developers with a more flexible and integrated approach to window and screen configuration.