mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-09 15:03:39 +00:00
prevent show 1970 when focusing the paging item in fileman app (#2412)
* _ * fix map view button overlap
This commit is contained in:
parent
509bda2472
commit
989414d4df
@ -751,11 +751,18 @@ FileManagerView::FileManagerView(
|
|||||||
text_date.set("Too many files!");
|
text_date.set("Too many files!");
|
||||||
} else {
|
} else {
|
||||||
text_date.set_style(Theme::getInstance()->fg_medium);
|
text_date.set_style(Theme::getInstance()->fg_medium);
|
||||||
if (selected_is_valid())
|
if (selected_is_valid()) {
|
||||||
|
if (get_selected_entry().path == str_back) {
|
||||||
|
text_date.set("Go page " + std::to_string(pagination + 1 - 1)); // for better explain, pagination start with 0 AKA real page - 1
|
||||||
|
} else if (get_selected_entry().path == str_next) {
|
||||||
|
text_date.set("Go page " + std::to_string(pagination + 1 + 1)); // when show this, it should display current AKA (pagination + 1) + 1 AKA next page
|
||||||
|
} else {
|
||||||
text_date.set((is_directory(get_selected_full_path()) ? "Created " : "Modified ") + to_string_FAT_timestamp(file_created_date(get_selected_full_path())));
|
text_date.set((is_directory(get_selected_full_path()) ? "Created " : "Modified ") + to_string_FAT_timestamp(file_created_date(get_selected_full_path())));
|
||||||
else
|
}
|
||||||
|
} else {
|
||||||
text_date.set("");
|
text_date.set("");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
refresh_list();
|
refresh_list();
|
||||||
|
@ -344,7 +344,7 @@ class GeoMapView : public View {
|
|||||||
{0, GeoMap::banner_height, GeoMap::geomap_rect_width, GeoMap::geomap_rect_height}};
|
{0, GeoMap::banner_height, GeoMap::geomap_rect_width, GeoMap::geomap_rect_height}};
|
||||||
|
|
||||||
Button button_ok{
|
Button button_ok{
|
||||||
{20 * 8, 8, 8 * 8, 2 * 16},
|
{screen_width - 15 * 8, 0, 15 * 8, 1 * 16},
|
||||||
"OK"};
|
"OK"};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user