summaryrefslogtreecommitdiff
path: root/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-26 16:17:32 -0500
committerJeff Carr <[email protected]>2023-03-26 16:17:32 -0500
commit35ae17e15cef079b0f94616ab3ce475fcadc03e2 (patch)
tree232523067a26ef9bd980e0f39208788591e6a640 /hostname.go
parent883737179fa5e3ab7f40ad2e4c23ea618aafa3cf (diff)
everything auto-updates on open
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostname.go')
-rw-r--r--hostname.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/hostname.go b/hostname.go
index d385e4f..0690c2e 100644
--- a/hostname.go
+++ b/hostname.go
@@ -28,9 +28,11 @@ func getHostname() {
if (me.fqdn != nil) {
// s = me.fqdn.GetText()
log("trying to update gui.Label")
- // me.fqdn.AddText(s)
- me.fqdn.SetText(s)
- me.hostname = s
+ if (me.hostname != s) {
+ me.fqdn.SetText(s)
+ me.hostname = s
+ me.changed = true
+ }
}
log("FQDN =", s)
}