mirror of https://github.com/jetkvm/kvm.git
fix linting issues
This commit is contained in:
parent
b3d354e949
commit
7c188d73d0
|
|
@ -14,7 +14,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
currentScreen = "boot_screen"
|
|
||||||
backlightState = 0 // 0 - NORMAL, 1 - DIMMED, 2 - OFF
|
backlightState = 0 // 0 - NORMAL, 1 - DIMMED, 2 - OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -32,8 +31,8 @@ func updateDisplay() {
|
||||||
nativeInstance.UpdateLabelIfChanged("home_info_ipv4_addr", networkState.IPv4String())
|
nativeInstance.UpdateLabelIfChanged("home_info_ipv4_addr", networkState.IPv4String())
|
||||||
nativeInstance.UpdateLabelAndChangeVisibility("home_info_ipv6_addr", networkState.IPv6String())
|
nativeInstance.UpdateLabelAndChangeVisibility("home_info_ipv6_addr", networkState.IPv6String())
|
||||||
|
|
||||||
nativeInstance.UIObjHide("menu_btn_network")
|
_, _ = nativeInstance.UIObjHide("menu_btn_network")
|
||||||
nativeInstance.UIObjHide("menu_btn_access")
|
_, _ = nativeInstance.UIObjHide("menu_btn_access")
|
||||||
|
|
||||||
nativeInstance.UpdateLabelIfChanged("home_info_mac_addr", networkState.MACString())
|
nativeInstance.UpdateLabelIfChanged("home_info_mac_addr", networkState.MACString())
|
||||||
|
|
||||||
|
|
@ -71,7 +70,7 @@ func updateDisplay() {
|
||||||
stopCloudBlink()
|
stopCloudBlink()
|
||||||
case CloudConnectionStateConnecting:
|
case CloudConnectionStateConnecting:
|
||||||
_, _ = nativeInstance.UIObjSetImageSrc("cloud_status_icon", "cloud")
|
_, _ = nativeInstance.UIObjSetImageSrc("cloud_status_icon", "cloud")
|
||||||
startCloudBlink()
|
restartCloudBlink()
|
||||||
case CloudConnectionStateConnected:
|
case CloudConnectionStateConnected:
|
||||||
_, _ = nativeInstance.UIObjSetImageSrc("cloud_status_icon", "cloud")
|
_, _ = nativeInstance.UIObjSetImageSrc("cloud_status_icon", "cloud")
|
||||||
stopCloudBlink()
|
stopCloudBlink()
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ import (
|
||||||
var nativeInstance *native.Native
|
var nativeInstance *native.Native
|
||||||
|
|
||||||
func initNative(systemVersion *semver.Version, appVersion *semver.Version) {
|
func initNative(systemVersion *semver.Version, appVersion *semver.Version) {
|
||||||
|
|
||||||
nativeInstance = native.NewNative(native.NativeOptions{
|
nativeInstance = native.NewNative(native.NativeOptions{
|
||||||
SystemVersion: systemVersion,
|
SystemVersion: systemVersion,
|
||||||
AppVersion: appVersion,
|
AppVersion: appVersion,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue