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