summaryrefslogtreecommitdiff
path: root/rr.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 21:04:31 -0600
committerJeff Carr <[email protected]>2024-01-06 21:04:31 -0600
commit89e740330f8341c3a8153027bbe565dc2ae4662a (patch)
treef6af268b5bcfa33a1d33e46350a7acbc24a9a99b /rr.go
parent8f34aa62f2b81d0dc90c93bf248808e799a0b652 (diff)
return *gui.BasicWindow
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'rr.go')
-rw-r--r--rr.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/rr.go b/rr.go
index 6ee11f2..57431a4 100644
--- a/rr.go
+++ b/rr.go
@@ -18,12 +18,12 @@ func init() {
Config = make(map[string]*ConfigT)
}
-func CreateRR(myGui *gui.Node, zone string, zoneID string) {
+func CreateRR(myGui *gui.Node, zone string, zoneID string) *gadgets.BasicWindow {
if (CFdialog.cloudflareW != nil) {
// skip this if the window has already been created
log.Warn("createRR() the cloudflare window already exists")
CFdialog.cloudflareB.Disable()
- return
+ return CFdialog.cloudflareW
}
CFdialog.cloudflareW = gadgets.NewBasicWindow(myGui, "cloudflare " + zone + " API")
@@ -149,4 +149,6 @@ func CreateRR(myGui *gui.Node, zone string, zoneID string) {
group.Pad()
grid.Pad()
grid.Expand()
+
+ return CFdialog.cloudflareW
}