fix: mac address not showing on home screen

This commit is contained in:
Siyuan 2025-10-10 15:11:20 +00:00
parent 22f5ed2a8b
commit ece467eba8
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ func waitCtrlAndRequestDisplayUpdate(shouldWakeDisplay bool, reason string) {
func updateStaticContents() { func updateStaticContents() {
//contents that never change //contents that never change
nativeInstance.UpdateLabelIfChanged("home_info_mac_addr", networkManager.MACString()) if networkManager != nil {
nativeInstance.UpdateLabelIfChanged("home_info_mac_addr", networkManager.MACString())
}
// get cpu info // get cpu info
if cpuInfo, err := os.ReadFile("/proc/cpuinfo"); err == nil { if cpuInfo, err := os.ReadFile("/proc/cpuinfo"); err == nil {