mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-04 00:21:57 +00:00
Buttons are now decoded with quotes surrounding them.
This commit is contained in:
parent
3fe6b0ee0c
commit
c0d7ef0667
@ -166,7 +166,14 @@ impl State {
|
||||
(State::Menu { menu, buttons }, Command::FinishMenu) => {
|
||||
println!(
|
||||
"menu {menu:?}, {}",
|
||||
buttons.iter().map(|button| button.as_str()).format(", ")
|
||||
buttons
|
||||
.iter()
|
||||
.map(|button| dcb_util::DisplayWrapper::new(move |f| write!(
|
||||
f,
|
||||
"\"{}\"",
|
||||
button.as_str().escape_debug()
|
||||
)))
|
||||
.format(", ")
|
||||
);
|
||||
|
||||
*self = State::Start;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user