Set Timezone properly on load

break device name if it is too long
This commit is contained in:
Garth Vander Houwen 2024-05-04 13:02:47 -07:00
parent 9e260dd09a
commit da75837bdc
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,8 @@ struct NodeInfoItem: View {
.frame(width: 75, height: 75)
.cornerRadius(5)
Text(String(node.user!.hwModel ?? "unset".localized))
.font(.caption2).fixedSize()
.font(.caption2)
.frame(maxWidth: 125)
}
}
if node.snr != 0 && !node.viaMqtt {

View file

@ -313,6 +313,7 @@ struct DeviceConfig: View {
self.doubleTapAsButtonPress = node?.deviceConfig?.doubleTapAsButtonPress ?? false
self.ledHeartbeatEnabled = node?.deviceConfig?.ledHeartbeatEnabled ?? true
self.isManaged = node?.deviceConfig?.isManaged ?? false
self.tzdef = node?.deviceConfig?.tzdef ?? ""
if self.tzdef.isEmpty {
self.tzdef = TimeZone.current.posixDescription
self.hasChanges = true