mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-09-19 05:06:43 +02:00
multiline view error
This commit is contained in:
parent
07f2290017
commit
b4424fcb69
15 changed files with 979 additions and 949 deletions
|
|
@ -55,17 +55,23 @@ impl Dialog {
|
|||
/// ```
|
||||
pub fn welcome () -> Self {
|
||||
Self::Menu(1, MenuItems([
|
||||
|
||||
MenuItem("Resume session".into(), Arc::new(Box::new(|_|Ok(())))),
|
||||
|
||||
MenuItem("New session".into(), Arc::new(Box::new(|app|Ok({
|
||||
app.dialog = Dialog::None;
|
||||
app.mode = app.config.modes.get(":arranger").unwrap();
|
||||
app.mode = app.config.modes.get(":arranger");
|
||||
})))),
|
||||
|
||||
MenuItem("Load session".into(), Arc::new(Box::new(|_|Ok(())))),
|
||||
|
||||
MenuItem("Exit".into(), Arc::new(Box::new(|_|Ok({
|
||||
()
|
||||
})))),
|
||||
|
||||
].into()))
|
||||
}
|
||||
|
||||
/// FIXME: generalize
|
||||
/// ```
|
||||
/// let _ = tek::Dialog::welcome().menu_selected();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue