mirror of https://github.com/jetkvm/kvm.git
fix: check if network manager is nil
This commit is contained in:
parent
110790a664
commit
459dc5c9fa
|
|
@ -72,7 +72,7 @@ func updateDisplay() {
|
||||||
}
|
}
|
||||||
nativeInstance.UpdateLabelIfChanged("cloud_status_label", fmt.Sprintf("%d active", actionSessions))
|
nativeInstance.UpdateLabelIfChanged("cloud_status_label", fmt.Sprintf("%d active", actionSessions))
|
||||||
|
|
||||||
if networkManager.IsUp() {
|
if networkManager != nil && networkManager.IsUp() {
|
||||||
nativeInstance.UISetVar("main_screen", "home_screen")
|
nativeInstance.UISetVar("main_screen", "home_screen")
|
||||||
nativeInstance.SwitchToScreenIf("home_screen", []string{"no_network_screen", "boot_screen"})
|
nativeInstance.SwitchToScreenIf("home_screen", []string{"no_network_screen", "boot_screen"})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue