mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add a warning about the fixed size of the IPC payload for selected checkbox items
This commit is contained in:
parent
44453bcbde
commit
91836e5574
1 changed files with 4 additions and 1 deletions
|
|
@ -144,7 +144,10 @@ impl ActionApi for CheckBoxes {
|
||||||
if self.action_payload.contains(item_name) {
|
if self.action_payload.contains(item_name) {
|
||||||
self.action_payload.remove(item_name);
|
self.action_payload.remove(item_name);
|
||||||
} else {
|
} else {
|
||||||
self.action_payload.add(item_name);
|
if !self.action_payload.add(item_name) {
|
||||||
|
log::warn!("Limit of {} items that can be checked hit, consider increasing MAX_ITEMS in gam/src/modal.rs", MAX_ITEMS);
|
||||||
|
log::warn!("The attempted item '{}' was not selected.", item_name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else { // the OK button select
|
} else { // the OK button select
|
||||||
let buf = Buffer::into_buf(self.action_payload).expect("couldn't convert message to payload");
|
let buf = Buffer::into_buf(self.action_payload).expect("couldn't convert message to payload");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue