mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 21:59:52 -07:00
Support sending and displaying typing notifications (#9)
This commit is contained in:
parent
c744d74e42
commit
d038da6844
12 changed files with 348 additions and 30 deletions
|
@ -21,8 +21,10 @@ pub struct WelcomeState {
|
|||
impl WelcomeState {
|
||||
pub fn new(store: &mut ProgramStore) -> Self {
|
||||
let buf = store.buffers.load_str(IambBufferId::Welcome, WELCOME_TEXT);
|
||||
let mut tbox = TextBoxState::new(buf);
|
||||
tbox.set_readonly(true);
|
||||
|
||||
WelcomeState { tbox: TextBoxState::new(buf) }
|
||||
WelcomeState { tbox }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue