mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-18 13:44:14 -05:00
BLE RX: added clear list button (#1593)
* added clear list button * Bigger buttons and text * Change case on labels --------- Co-authored-by: GullCode <gullradriel@hotmail.com>
This commit is contained in:
parent
8655027a5b
commit
650aacfaa7
@ -420,6 +420,7 @@ BLERxView::BLERxView(NavigationView& nav)
|
|||||||
&options_sort,
|
&options_sort,
|
||||||
&button_filter,
|
&button_filter,
|
||||||
&button_save_list,
|
&button_save_list,
|
||||||
|
&button_clear_list,
|
||||||
&button_switch,
|
&button_switch,
|
||||||
&recent_entries_view});
|
&recent_entries_view});
|
||||||
|
|
||||||
@ -448,6 +449,10 @@ BLERxView::BLERxView(NavigationView& nav)
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
button_clear_list.on_select = [this](Button&) {
|
||||||
|
recent.clear();
|
||||||
|
};
|
||||||
|
|
||||||
button_switch.on_select = [&nav](Button&) {
|
button_switch.on_select = [&nav](Button&) {
|
||||||
nav.replace<BLETxView>();
|
nav.replace<BLETxView>();
|
||||||
};
|
};
|
||||||
|
@ -274,13 +274,17 @@ class BLERxView : public View {
|
|||||||
Console console{
|
Console console{
|
||||||
{0, 4 * 16, 240, 240}};
|
{0, 4 * 16, 240, 240}};
|
||||||
|
|
||||||
|
Button button_clear_list{
|
||||||
|
{2 * 8, 320 - (16 + 32), 7 * 8, 32},
|
||||||
|
"Clear"};
|
||||||
|
|
||||||
Button button_save_list{
|
Button button_save_list{
|
||||||
{1 * 8, 16 * 16, 13 * 8, 2 * 16},
|
{11 * 8, 320 - (16 + 32), 11 * 8, 32},
|
||||||
"Save List"};
|
"Export CSV"};
|
||||||
|
|
||||||
Button button_switch{
|
Button button_switch{
|
||||||
{16 * 8, 16 * 16, 13 * 8, 2 * 16},
|
{240 - 6 * 8, 320 - (16 + 32), 4 * 8, 32},
|
||||||
"Switch to Rx"};
|
"Tx"};
|
||||||
|
|
||||||
std::string str_log{""};
|
std::string str_log{""};
|
||||||
bool logging{false};
|
bool logging{false};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user