@@ -44,24 +44,24 @@ func updateDisplay() {
44
44
nativeInstance .UpdateLabelIfChanged ("home_info_ipv4_addr" , networkState .IPv4String ())
45
45
nativeInstance .UpdateLabelAndChangeVisibility ("home_info_ipv6_addr" , networkState .IPv6String ())
46
46
47
- nativeInstance .ObjHide ("menu_btn_network" )
48
- nativeInstance .ObjHide ("menu_btn_access" )
47
+ nativeInstance .UIObjHide ("menu_btn_network" )
48
+ nativeInstance .UIObjHide ("menu_btn_access" )
49
49
50
50
nativeInstance .UpdateLabelIfChanged ("home_info_mac_addr" , networkState .MACString ())
51
51
52
52
if usbState == "configured" {
53
53
nativeInstance .UpdateLabelIfChanged ("usb_status_label" , "Connected" )
54
- _ , _ = nativeInstance .ObjSetState ("usb_status" , "LV_STATE_DEFAULT" )
54
+ _ , _ = nativeInstance .UIObjSetState ("usb_status" , "LV_STATE_DEFAULT" )
55
55
} else {
56
56
nativeInstance .UpdateLabelIfChanged ("usb_status_label" , "Disconnected" )
57
- _ , _ = nativeInstance .ObjSetState ("usb_status" , "LV_STATE_DISABLED" )
57
+ _ , _ = nativeInstance .UIObjSetState ("usb_status" , "LV_STATE_DISABLED" )
58
58
}
59
59
if lastVideoState .Ready {
60
60
nativeInstance .UpdateLabelIfChanged ("hdmi_status_label" , "Connected" )
61
- _ , _ = nativeInstance .ObjSetState ("hdmi_status" , "LV_STATE_DEFAULT" )
61
+ _ , _ = nativeInstance .UIObjSetState ("hdmi_status" , "LV_STATE_DEFAULT" )
62
62
} else {
63
63
nativeInstance .UpdateLabelIfChanged ("hdmi_status_label" , "Disconnected" )
64
- _ , _ = nativeInstance .ObjSetState ("hdmi_status" , "LV_STATE_DISABLED" )
64
+ _ , _ = nativeInstance .UIObjSetState ("hdmi_status" , "LV_STATE_DISABLED" )
65
65
}
66
66
nativeInstance .UpdateLabelIfChanged ("cloud_status_label" , fmt .Sprintf ("%d active" , actionSessions ))
67
67
@@ -72,20 +72,20 @@ func updateDisplay() {
72
72
}
73
73
74
74
if cloudConnectionState == CloudConnectionStateNotConfigured {
75
- _ , _ = nativeInstance .ObjHide ("cloud_status_icon" )
75
+ _ , _ = nativeInstance .UIObjHide ("cloud_status_icon" )
76
76
} else {
77
- _ , _ = nativeInstance .ObjShow ("cloud_status_icon" )
77
+ _ , _ = nativeInstance .UIObjShow ("cloud_status_icon" )
78
78
}
79
79
80
80
switch cloudConnectionState {
81
81
case CloudConnectionStateDisconnected :
82
- _ , _ = nativeInstance .ImgSetSrc ("cloud_status_icon" , "cloud_disconnected" )
82
+ _ , _ = nativeInstance .UIObjSetImageSrc ("cloud_status_icon" , "cloud_disconnected" )
83
83
stopCloudBlink ()
84
84
case CloudConnectionStateConnecting :
85
- _ , _ = nativeInstance .ImgSetSrc ("cloud_status_icon" , "cloud" )
85
+ _ , _ = nativeInstance .UIObjSetImageSrc ("cloud_status_icon" , "cloud" )
86
86
startCloudBlink ()
87
87
case CloudConnectionStateConnected :
88
- _ , _ = nativeInstance .ImgSetSrc ("cloud_status_icon" , "cloud" )
88
+ _ , _ = nativeInstance .UIObjSetImageSrc ("cloud_status_icon" , "cloud" )
89
89
stopCloudBlink ()
90
90
}
91
91
}
@@ -389,7 +389,7 @@ func initDisplay() {
389
389
go func () {
390
390
displayLogger .Info ().Msg ("setting initial display contents" )
391
391
time .Sleep (500 * time .Millisecond )
392
- _ , _ = nativeInstance .DispSetRotation (config .DisplayRotation )
392
+ _ , _ = nativeInstance .DisplaySetRotation (config .DisplayRotation )
393
393
updateStaticContents ()
394
394
displayInited = true
395
395
displayLogger .Info ().Msg ("display inited" )
0 commit comments