Skip to content

Commit 6aa5558

Browse files
Merge pull request #79 from pathaugen/patch-1
Fix to window title and expected behavior of "HasFrame"
2 parents 92e66a5 + 553591b commit 6aa5558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bindings/window/window.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func NewWindow(options Options) *Window {
7474
ObjectType: "window",
7575
Args: CommandArguments{
7676
RootUrl: w.Url,
77-
Title: spawn.ApplicationName,
77+
Title: options.Title, // Should be using the options.Title, not spawn.ApplicationName
7878
Size: size,
79-
HasFrame: !options.HasFrame,
79+
HasFrame: options.HasFrame, // This was reversed, HasFrame behavior should be 'true' (has frame) and 'false' (no frame)
8080
IconPath: options.IconPath,
8181
},
8282
}

0 commit comments

Comments
 (0)