summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 11:32:43 -0600
committerJeff Carr <[email protected]>2024-01-07 11:32:43 -0600
commitf10c3085c6dcf29bc6458189fbf4128358150e91 (patch)
treef390eab78cc53469e4addba874b42b640d1da8a3
parent937f77b3558702a2e0ff76fbb1a8ef91242302c8 (diff)
the thing works pretty well if you use cloudflare
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--gui.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index dd93c5c..4172b11 100644
--- a/gui.go
+++ b/gui.go
@@ -11,6 +11,7 @@ import (
"go.wit.com/gui/gadgets"
"go.wit.com/gui/cloudflare"
"go.wit.com/gui/debugger"
+ "go.wit.com/gui/gadgets/logsettings"
// "go.wit.com/control-panels/dns/linuxstatus"
)
@@ -105,6 +106,16 @@ func mainWindow(title string) {
gr.NewButton("Debug", func () {
me.debug.Toggle()
})
+
+ var myLS *logsettings.LogSettings
+ gr.NewButton("Logging Settings", func () {
+ if myLS == nil {
+ // initialize the log settings window (does not display it)
+ myLS = logsettings.New(me.myGui)
+ return
+ }
+ myLS.Toggle()
+ })
}
func statusGrid(n *gui.Node) {