mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Stupid mistake with world_map.bin detection
This commit is contained in:
parent
f00125879d
commit
04c5b4d607
2 changed files with 6 additions and 6 deletions
|
@ -211,7 +211,7 @@ void GeoMap::draw_bearing(const Point origin, const uint32_t angle, uint32_t siz
|
|||
void GeoMapView::focus() {
|
||||
geopos.focus();
|
||||
|
||||
if (!file_error)
|
||||
if (!map_opened)
|
||||
nav_.display_modal("No map", "No world_map.bin file in\n/ADSB/ directory", ABORT, nullptr);
|
||||
}
|
||||
|
||||
|
@ -280,8 +280,8 @@ GeoMapView::GeoMapView(
|
|||
|
||||
add_child(&geopos);
|
||||
|
||||
file_error = !geomap.init();
|
||||
if (file_error) return;
|
||||
map_opened = geomap.init();
|
||||
if (!map_opened) return;
|
||||
|
||||
setup();
|
||||
|
||||
|
@ -308,8 +308,8 @@ GeoMapView::GeoMapView(
|
|||
|
||||
add_child(&geopos);
|
||||
|
||||
file_error = !geomap.init();
|
||||
if (file_error) return;
|
||||
map_opened = geomap.init();
|
||||
if (!map_opened) return;
|
||||
|
||||
setup();
|
||||
add_child(&button_ok);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue