summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-11-04 05:46:49 -0500
committerJeff Carr <[email protected]>2021-11-04 05:46:49 -0500
commitf5fa56cddcd2bb50d7a37637d1e8e056bfeea113 (patch)
treebe65237490f67f16a7a1ab213a2b28976af0a374 /window.go
parent98adddc996077f4ce6db4d3be949a96829ccb4f6 (diff)
SMALL: some stuff hanging around
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/window.go b/window.go
index eb39e87..50f7073 100644
--- a/window.go
+++ b/window.go
@@ -86,7 +86,7 @@ func (n *Node) AddNode(title string) *Node {
}
func (n *Node) uiNewWindow(title string, x int, y int) {
- w := ui.NewWindow(title, x, y, false)
+ w := ui.NewWindow(title, x, y, Config.Menu)
w.SetBorderless(false)
f := Config.Exit
w.OnClosing(func(*ui.Window) bool {
@@ -126,6 +126,9 @@ func mapWindow(parent *Node, window *ui.Window, title string, x int, y int) *Nod
// it can be passed via the 'andlabs/ui' queue which, because it is
// cross platform, must pass UI changes into the OS threads (that is
// my guess).
+//
+// There is probably some way to pass arguements here that I'm can't think of right now
+//
func NewWindow() *Node {
title := Config.Title
w := Config.Width