move popview up so it does not close wifi dialog

This commit is contained in:
Vincent Elger Zwanenburg
2025-07-11 19:40:44 +01:00
parent 62f0e711c9
commit b45f02ef7b
3 changed files with 5 additions and 4 deletions

View File

@ -256,7 +256,7 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
url = url + id.substring(0, id.find(".")) + "/turn_off";
}
if (! phoneConnected && ! internetAvailable && Settings.getWifiLteExecutionEnabled()) {
if ((! phoneConnected || ! internetAvailable) && Settings.getWifiLteExecutionEnabled()) {
var dialogMsg = WatchUi.loadResource($.Rez.Strings.WifiLtePrompt) as Lang.String;
var dialog = new WatchUi.Confirmation(dialogMsg);
WatchUi.pushView(
@ -334,5 +334,5 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
function onConfirm(b as Lang.Boolean) as Void {
setState(b);
}
}