mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 22:52:27 -04:00
move the no ext app tile to forward (#2047)
* strong notice of missing ext app * textual * move the notice tile to front and remove the painter string * remove notice icon * format * for back button * remove <>
This commit is contained in:
parent
2e1e02baac
commit
90ff1e62ce
3 changed files with 26 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2019 Elia Yehuda (z4ziggy)
|
||||
* Copyright (C) 2023 Mark Thompson
|
||||
* Copyright (C) 2024 u-foka
|
||||
* Copyleft (ↄ) 2024 zxkmm with the GPL license
|
||||
*
|
||||
* This file is part of PortaPack.
|
||||
*
|
||||
|
@ -133,6 +134,19 @@ void BtnGridView::add_item(GridItem new_item) {
|
|||
}
|
||||
}
|
||||
|
||||
void BtnGridView::insert_item(GridItem new_item, uint8_t position) {
|
||||
if (!blacklisted_app(new_item)) {
|
||||
if (position < menu_items.size()) {
|
||||
auto pos_iter = menu_items.begin() + position;
|
||||
menu_items.insert(pos_iter, new_item);
|
||||
update_items();
|
||||
} else {
|
||||
menu_items.push_back(new_item);
|
||||
update_items();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BtnGridView::update_items() {
|
||||
size_t i = 0;
|
||||
Color bg_color = portapack::persistent_memory::menu_color();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue