This commit is contained in:
Antonio Scandurra 2022-07-20 15:07:09 +02:00
parent 7757fbe241
commit 2ea0b89e7c
3 changed files with 303 additions and 31 deletions

View file

@ -255,6 +255,8 @@ impl super::Window for Window {
self.close_handlers.push(callback);
}
fn set_input_handler(&mut self, _: Box<dyn crate::InputHandler>) {}
fn prompt(&self, _: crate::PromptLevel, _: &str, _: &[&str]) -> oneshot::Receiver<usize> {
let (done_tx, done_rx) = oneshot::channel();
self.pending_prompts.borrow_mut().push_back(done_tx);