summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 10:38:17 -0600
committerJeff Carr <[email protected]>2024-01-07 10:38:17 -0600
commitef6eb7a96aa4aee7c16ba5e7320bde4ffd79acc0 (patch)
treebba27c349418d5d799d86fdbadcf275327e08c26 /main.go
parent259b4bdb408fd234cf1c76f94463a85d87fdadb6 (diff)
error window v0.1
error box starts doing something start a window for errors to fix more status cleanups & housecleaning Signed-off-by: Jeff Carr <[email protected]> Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5988392..e57b4ef 100644
--- a/main.go
+++ b/main.go
@@ -157,9 +157,17 @@ func dnsTTL() {
}
// run update on the LinuxStatus() window
+// also update a few things on the main window
func linuxLoop() {
me.statusOS.Update()
+ if me.statusOS.ValidHostname() {
+ if me.hostnameStatus.GetText() != "VALID" {
+ me.hostnameStatus.Set("VALID")
+ me.changed = true
+ }
+ }
+
if (me.statusOS.Changed()) {
stamp := time.Now().Format("2006/01/02 15:04:05")
log.Log(CHANGE, "Network things changed on", stamp)