Fix header not reappearing after menu exit
This commit is contained in:
@@ -344,7 +344,7 @@ void drawHeader() {
|
||||
tft.setTextColor(TFT_WHITE, TFT_BLACK);
|
||||
tft.setTextSize(1);
|
||||
tft.setCursor(6, 10);
|
||||
tft.println("Leos FR");
|
||||
tft.println("Leos Radar");
|
||||
drawMenuButton();
|
||||
updateWifiIcon();
|
||||
drawWeatherIcon();
|
||||
@@ -687,8 +687,6 @@ void loop() {
|
||||
if (tapped) {
|
||||
if (menuBtn.contains(tap.x, tap.y)) {
|
||||
MenuScreen::run(tft);
|
||||
drawHeader();
|
||||
updateStatusLine();
|
||||
forceRedraw = true;
|
||||
} else if (weatherIconRect.contains(tap.x, tap.y)) {
|
||||
showWeatherInfo(tft);
|
||||
@@ -718,6 +716,8 @@ void loop() {
|
||||
lastRenderedVersion = currentVersion;
|
||||
forceRedraw = false;
|
||||
RadarScreen::render(tft, CONTENT_TOP);
|
||||
drawHeader();
|
||||
updateStatusLine();
|
||||
lastSweepMs = millis();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user