summaryrefslogtreecommitdiff
path: root/smartwindow/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 05:46:59 -0600
committerJeff Carr <[email protected]>2024-01-07 05:46:59 -0600
commit930bdc941b1181460f4c38dc708dc53d583ab5d3 (patch)
tree725fc54433bcc5a5947922bae0fee2a6b830b346 /smartwindow/common.go
parent82b5717f48f258f6ea792cd4e895c0ba99cf1e11 (diff)
remove debugging options
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'smartwindow/common.go')
-rw-r--r--smartwindow/common.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/smartwindow/common.go b/smartwindow/common.go
new file mode 100644
index 0000000..772a790
--- /dev/null
+++ b/smartwindow/common.go
@@ -0,0 +1,24 @@
+// This creates a 'smart window'
+// it should work even when it is hidden
+// from the gui toolkit plugins
+package smartwindow
+
+import (
+ "go.wit.com/log"
+)
+
+func (sw *SmartWindow) Ready() bool {
+ log.Log(WARN, "Ready() maybe not ready? sw =", sw)
+ if sw == nil {return false}
+ if sw == nil {return false}
+ if sw.window == nil {return false}
+ return sw.ready
+}
+
+func (sw *SmartWindow) Initialized() bool {
+ log.Log(WARN, "checking Initialized()")
+ if sw == nil {return false}
+ if sw == nil {return false}
+ if sw.parent == nil {return false}
+ return true
+}