owmweather - Show hint if pull method not available
parent
d26c33aef6
commit
b6c6ca3c86
|
|
@ -38,6 +38,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Force refresh": ()=>{
|
"Force refresh": ()=>{
|
||||||
|
if (!Bangle.pullOwmWeather){
|
||||||
|
E.showAlert("Reload watch after enabling","Hint").then(()=>{
|
||||||
|
E.showMenu(buildMainMenu());
|
||||||
|
});
|
||||||
|
} else {
|
||||||
E.showMessage("Reloading weather");
|
E.showMessage("Reloading weather");
|
||||||
Bangle.pullOwmWeather(true, (e)=>{
|
Bangle.pullOwmWeather(true, (e)=>{
|
||||||
if (e) {
|
if (e) {
|
||||||
|
|
@ -51,6 +56,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mainmenu["API key"] = function (){
|
mainmenu["API key"] = function (){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue