diff options
| author | Jeff Carr <[email protected]> | 2023-03-26 16:17:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-26 16:17:32 -0500 |
| commit | 70a7ca6d75b0bffbd184b1780bca5a9b0db46c70 (patch) | |
| tree | 3241a5fb24af3624da8abb7380a450116a2ea1ee /hostname.go | |
| parent | 53c8c54b15d396f4efe4335948404814ac04a4dd (diff) | |
everything auto-updates on open
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostname.go')
| -rw-r--r-- | hostname.go | 8 |
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) } |
