summaryrefslogtreecommitdiff
path: root/rr.go
diff options
context:
space:
mode:
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
}